Commit 7e0518d3 authored by Stefan Behnel's avatar Stefan Behnel

avoid reusing method argument variable

parent 2b17a4ac
...@@ -997,8 +997,8 @@ class ModuleScope(Scope): ...@@ -997,8 +997,8 @@ class ModuleScope(Scope):
self.cached_builtins = [] self.cached_builtins = []
self.undeclared_cached_builtins = [] self.undeclared_cached_builtins = []
self.namespace_cname = self.module_cname self.namespace_cname = self.module_cname
for name in ['__builtins__', '__name__', '__file__', '__doc__']: for var_name in ['__builtins__', '__name__', '__file__', '__doc__']:
self.declare_var(EncodedString(name), py_object_type, None) self.declare_var(EncodedString(var_name), py_object_type, None)
def qualifying_scope(self): def qualifying_scope(self):
return self.parent_module return self.parent_module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment