Use xrange instead of range.
This commit is contained in:
parent
e3fbfe5225
commit
b5319fa235
2 changed files with 3 additions and 3 deletions
|
@ -360,7 +360,7 @@ class DataSub(Data):
|
|||
|
||||
def compare(self, other):
|
||||
if len(self.data) != len(other.data): return False
|
||||
for i in range(self.data):
|
||||
for i in xrange(self.data):
|
||||
if not self.data[i].compare(other.data[i]): return False
|
||||
return True
|
||||
|
||||
|
@ -583,7 +583,7 @@ class DataSub(Data):
|
|||
value = str(value)
|
||||
# read existing values
|
||||
q = []
|
||||
for d in range(3):
|
||||
for d in xrange(3):
|
||||
q += [self.get_quantity(name, d, value)]
|
||||
q[difficulty] = value
|
||||
|
||||
|
|
|
@ -577,7 +577,7 @@ class CrossRef:
|
|||
instring = False
|
||||
args = []
|
||||
arg = ""
|
||||
for i in range(match.start(0), len(line)):
|
||||
for i in xrange(match.start(0), len(line)):
|
||||
if instring:
|
||||
if line[i] == '"':
|
||||
instring = False
|
||||
|
|
Loading…
Add table
Reference in a new issue