javaclass

Changeset

50:b8078fdfcd63
2004-11-14 Paul Boddie raw files shortlog changelog graph Fixed importing of modules.
bytecode.py (file)
     1.1 --- a/bytecode.py	Sun Nov 14 01:59:23 2004 +0100
     1.2 +++ b/bytecode.py	Sun Nov 14 02:00:59 2004 +0100
     1.3 @@ -1927,7 +1927,7 @@
     1.4                  class_module_name = "__this__"
     1.5              class_name = class_name_parts[-1]
     1.6              print "*", class_module_name, class_name
     1.7 -            class_module = __import__(class_module_name, global_names, {}, [class_name])
     1.8 +            class_module = __import__(class_module_name, global_names, {}, [])
     1.9              base = getattr(class_module, class_name)
    1.10              return (base,)
    1.11