summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2019-06-06 18:28:56 (GMT)
committerMats Wichmann <mats@linux.com>2019-06-06 18:28:56 (GMT)
commit1aec0e84d63bbf5dd275039cc9dd545d3f37ac50 (patch)
treec3692601d55d16fc42a3f1e2444d505f8d3a2512 /src
parent6d5d4d70e8e814465405c5ea2e6901deefddcdaa (diff)
downloadSCons-1aec0e84d63bbf5dd275039cc9dd545d3f37ac50.zip
SCons-1aec0e84d63bbf5dd275039cc9dd545d3f37ac50.tar.gz
SCons-1aec0e84d63bbf5dd275039cc9dd545d3f37ac50.tar.bz2
Use more idiomatic Python
Minor: replace an instance of "for i in range(len(foo))" with the now preferred "for i in foo". This change didn't naturally fit with any of the other instances of this usage, so is submitted by itself. Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'src')
-rw-r--r--src/engine/SCons/Scanner/LaTeX.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/engine/SCons/Scanner/LaTeX.py b/src/engine/SCons/Scanner/LaTeX.py
index fd0391b..f48c84d 100644
--- a/src/engine/SCons/Scanner/LaTeX.py
+++ b/src/engine/SCons/Scanner/LaTeX.py
@@ -372,9 +372,9 @@ class LaTeX(SCons.Scanner.Base):
inc_list = include[2].split(',')
else:
inc_list = include[1].split(',')
- for j in range(len(inc_list)):
- split_includes.append( (inc_type, inc_subdir, inc_list[j]) )
- #
+ for inc in inc_list:
+ split_includes.append((inc_type, inc_subdir, inc))
+
includes = split_includes
node.includes = includes