summaryrefslogtreecommitdiff
path: root/SCons/Tool/tex.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2020-11-18 07:09:33 -0700
committerMats Wichmann <mats@linux.com>2020-11-18 07:09:33 -0700
commitb896b7b9649003016537a005678c576511bf3338 (patch)
tree4fead4ca67f7d07e49cb2cf6987ac11f1330b6a5 /SCons/Tool/tex.py
parent208f131feaaa8fb88e3e27ff4eff6a41fc5fec93 (diff)
downloadscons-git-b896b7b9649003016537a005678c576511bf3338.tar.gz
[PR #3827] fix: don't iterate over object being modified
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Tool/tex.py')
-rw-r--r--SCons/Tool/tex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/Tool/tex.py b/SCons/Tool/tex.py
index a5e65c950..0ca7e2da4 100644
--- a/SCons/Tool/tex.py
+++ b/SCons/Tool/tex.py
@@ -791,7 +791,7 @@ def tex_emitter_core(target, source, env, graphics_extensions):
file_basename = os.path.join(targetdir, 'bu*.aux')
file_list = glob.glob(file_basename)
# remove the suffix '.aux'
- for fl in file_list:
+ for fl in file_list.copy():
file_list.append(SCons.Util.splitext(fl)[0])
# for multibib we need a list of files
if suffix_list[-1] == 'multibib':