Permalink
Browse files

pyassem.py: Don't use 'list' as a variable name.

  • Loading branch information...
Andy Chu
Andy Chu committed Mar 17, 2018
1 parent e1ad2a5 commit 7e4beb8ec27e9b7d77c07043e9355e86efa73f6d
Showing with 5 additions and 5 deletions.
  1. +5 −5 opy/compiler2/pyassem.py
View
@@ -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

Please sign in to comment.