]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/postprocessor/__init__.py
Move postprocessor into its own package
[youtube-dl.git] / youtube_dl / postprocessor / __init__.py
similarity index 99%
rename from youtube_dl/PostProcessor.py
rename to youtube_dl/postprocessor/__init__.py
index 617a17ba936e9b82cac00cec052de2519a496b08..282cc4d7e639ce5e01603ba1f22ecbe88aa85619 100644 (file)
@@ -4,13 +4,14 @@ import sys
 import time
 
 
-from .utils import (
+from ..utils import (
     compat_subprocess_get_DEVNULL,
     encodeFilename,
+    hyphenate_date,
     PostProcessingError,
+    prepend_extension,
     shell_quote,
     subtitles_filename,
-    prepend_extension,
 )
 
 
@@ -540,8 +541,6 @@ class XAttrMetadataPP(PostProcessor):
     def run(self, info):
         """ Set extended attributes on downloaded file (if xattr support is found). """
 
-        from .utils import hyphenate_date
-
         # This mess below finds the best xattr tool for the job and creates a
         # "write_xattr" function.
         try: