Jouke Waleson
5f6a1245ff
PEP8 applied
10 years ago
Philipp Hagemeister
8c25f81bee
[util] Move compatibility functions out of util
utils is large enough without these compatibility functions.
Everything that is present in newer versions of Python (i.e. with dev Python it's just an import) goes into compat.py .
Everything else (i.e. youtube-dl-specific helpers) goes into utils.py .
10 years ago
Philipp Hagemeister
0a871f6880
Provide compatibility check_output for 2.6 ( Fixes #2926 )
10 years ago
Philipp Hagemeister
bd1b906527
Remove unusued import
11 years ago
Philipp Hagemeister
a9ce0c631e
[xattr] Correct on Windows
11 years ago
Philipp Hagemeister
afc7bc33cb
[xattr] Always use UTF-8
On Windows and other systems, other encodings would break when trying to encode non-ASCII characters.
Simply use UTF-8, like every sane system.
11 years ago
Philipp Hagemeister
168da92b9a
[xattr] Rework
In particular, explicitly require NT before trying ADS, and do not try to parse process output that may be localized.
11 years ago
Philipp Hagemeister
2a2e2770cc
[xattr] Always output a warning message on errors
11 years ago
Philipp Hagemeister
42cc71e80b
[xattr] Write bytestrings, not characters
11 years ago
Philipp Hagemeister
496c19234c
Split postprocessor package into multiple modules
11 years ago