mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-24 01:10:25 +01:00
Issue 1391 xrange
This commit is contained in:
parent
29252511d0
commit
4445b7e0b6
@ -38,7 +38,7 @@ def transform_strings(self):
|
||||
if isinstance(val, str):
|
||||
setattr(self, x, Utils.subst_vars(val, self.env))
|
||||
elif isinstance(val, list):
|
||||
for i in xrange(len(val)):
|
||||
for i in range(len(val)):
|
||||
if isinstance(val[i], str):
|
||||
val[i] = Utils.subst_vars(val[i], self.env)
|
||||
|
||||
|
@ -380,7 +380,7 @@ def transform_strings(self):
|
||||
if isinstance(val, str):
|
||||
setattr(self, x, Utils.subst_vars(val, self.env)) <4>
|
||||
elif isinstance(val, list):
|
||||
for i in xrange(len(val)):
|
||||
for i in range(len(val)):
|
||||
if isinstance(val[i], str):
|
||||
val[i] = Utils.subst_vars(val[i], self.env)
|
||||
---------------
|
||||
|
@ -268,7 +268,7 @@ class tex(Task.Task):
|
||||
Logs.error('error bibunitscan')
|
||||
else:
|
||||
if bibunits:
|
||||
fn = ['bu' + str(i) for i in xrange(1, len(bibunits) + 1)]
|
||||
fn = ['bu' + str(i) for i in range(1, len(bibunits) + 1)]
|
||||
if fn:
|
||||
Logs.info('calling bibtex on bibunits')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user