[utils,compat] Move struct_pack and struct_unpack to compat.py
[youtube-dl] / youtube_dl / swfinterp.py
index 99220940f8efde29180a22f035b9ceaeee46a11a..86b28716ce91e2b38e117745107a128a8e95081a 100644 (file)
@@ -4,11 +4,13 @@ import collections
 import io
 import zlib
 
-from .utils import (
+from .compat import (
     compat_str,
-    ExtractorError,
     struct_unpack,
 )
+from .utils import (
+    ExtractorError,
+)
 
 
 def _extract_tags(file_contents):
@@ -689,7 +691,7 @@ class SWFInterpreter(object):
                     elif mname in _builtin_classes:
                         res = _builtin_classes[mname]
                     else:
-                        # Assume unitialized
+                        # Assume uninitialized
                         # TODO warn here
                         res = undefined
                     stack.append(res)
@@ -827,4 +829,3 @@ class SWFInterpreter(object):
 
         avm_class.method_pyfunctions[func_name] = resfunc
         return resfunc
-