Permalink
Browse files
pyassem.py: Don't use 'list' as a variable name.
- Loading branch information...
Showing
with
5 additions
and
5 deletions.
-
+5
−5
opy/compiler2/pyassem.py
|
|
@@ -430,7 +430,7 @@ def sort_cellvars(self): |
|
|
self.cellvars = self.cellvars + cells.keys()
|
|
|
self.closure = self.cellvars + self.freevars
|
|
|
|
|
|
def _lookupName(self, name, list):
|
|
|
def _lookupName(self, name, L):
|
|
|
"""Return index of name in list, appending if necessary
|
|
|
|
|
|
This routine uses a list instead of a dictionary, because a
|
|
|
@@ -440,11 +440,11 @@ def _lookupName(self, name, list): |
|
|
comparison before comparing the values.
|
|
|
"""
|
|
|
t = type(name)
|
|
|
for i in range(len(list)):
|
|
|
if t == type(list[i]) and list[i] == name:
|
|
|
for i in xrange(len(L)):
|
|
|
if t == type(L[i]) and L[i] == name:
|
|
|
return i
|
|
|
end = len(list)
|
|
|
list.append(name)
|
|
|
end = len(L)
|
|
|
L.append(name)
|
|
|
return end
|
|
|
|
|
|
_converters = {}
|
|
|
|
0 comments on commit
7e4beb8