Commit Graph

12 Commits (cc38fa6cfbdab2ca77ecb1155d64574ab0004bb5)

Author SHA1 Message Date
Jaime Marquínez Ferrándiz 592e97e855 Postprocessors: use a list for the files that can be deleted
We could only know if we had to delete the original file, but this system allows to specify us more files (like subtitles).
10 years ago
Philipp Hagemeister dcddc10a50 [test_unicode_literals] Arm unicode_literals check
From now on, the line

from __future__ import unicode_literals

should be contained in every single Python file lest we run into any more 2.x/3.x issues.
Going forward, we're likely to develop on 3.x only and would likely miss subtle bugs otherwise.
10 years ago
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) 11 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