projects
/
platform
/
upstream
/
python-cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b17a4a
)
avoid reusing method argument variable
author
Stefan Behnel
<stefan_ml@behnel.de>
Mon, 6 Aug 2012 18:09:34 +0000
(20:09 +0200)
committer
Stefan Behnel
<stefan_ml@behnel.de>
Mon, 6 Aug 2012 18:09:34 +0000
(20:09 +0200)
Cython/Compiler/Symtab.py
patch
|
blob
|
history
diff --git
a/Cython/Compiler/Symtab.py
b/Cython/Compiler/Symtab.py
index
6922b8d
..
46beccf
100644
(file)
--- a/
Cython/Compiler/Symtab.py
+++ b/
Cython/Compiler/Symtab.py
@@
-997,8
+997,8
@@
class ModuleScope(Scope):
self.cached_builtins = []
self.undeclared_cached_builtins = []
self.namespace_cname = self.module_cname
- for name in ['__builtins__', '__name__', '__file__', '__doc__']:
- self.declare_var(EncodedString(name), py_object_type, None)
+ for
var_
name in ['__builtins__', '__name__', '__file__', '__doc__']:
+ self.declare_var(EncodedString(
var_
name), py_object_type, None)
def qualifying_scope(self):
return self.parent_module