import io
import zlib
+from .compat import compat_str
from .utils import (
- compat_str,
ExtractorError,
struct_unpack,
)
def __hash__(self):
return 0
+ def __str__(self):
+ return 'undefined'
+ __repr__ = __str__
+
undefined = _Undefined()
elif mname in _builtin_classes:
res = _builtin_classes[mname]
else:
- # Assume unitialized
+ # Assume uninitialized
+ # TODO warn here
res = undefined
stack.append(res)
elif opcode == 97: # setproperty
avm_class.method_pyfunctions[func_name] = resfunc
return resfunc
-