[util] Move compatibility functions out of util
authorPhilipp Hagemeister <phihag@phihag.de>
Sun, 2 Nov 2014 10:23:40 +0000 (11:23 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Sun, 2 Nov 2014 10:23:42 +0000 (11:23 +0100)
commit8c25f81beea169c9d6540eea1a6f71dc045da6ed
treef092b84995976340c8ed5302026fac8a6313a686
parent4c83c96795b1bf469b0e290fc1cbbed6f49f04bf
[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 .
24 files changed:
test/test_compat.py [new file with mode: 0644]
test/test_utils.py
youtube_dl/YoutubeDL.py
youtube_dl/__init__.py
youtube_dl/cache.py
youtube_dl/compat.py [new file with mode: 0644]
youtube_dl/extractor/addanime.py
youtube_dl/extractor/cloudy.py
youtube_dl/extractor/common.py
youtube_dl/extractor/crunchyroll.py
youtube_dl/extractor/dropbox.py
youtube_dl/extractor/facebook.py
youtube_dl/extractor/generic.py
youtube_dl/extractor/globo.py
youtube_dl/extractor/laola1tv.py
youtube_dl/extractor/myvideo.py
youtube_dl/extractor/ro220.py
youtube_dl/extractor/vimeo.py
youtube_dl/options.py
youtube_dl/postprocessor/atomicparsley.py
youtube_dl/postprocessor/execafterdownload.py
youtube_dl/postprocessor/ffmpeg.py
youtube_dl/postprocessor/xattrpp.py
youtube_dl/utils.py