diff options
author | Mats Wichmann <mats@linux.com> | 2020-11-18 14:09:33 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2020-11-18 14:09:33 (GMT) |
commit | b896b7b9649003016537a005678c576511bf3338 (patch) | |
tree | 4fead4ca67f7d07e49cb2cf6987ac11f1330b6a5 /SCons/Tool | |
parent | 208f131feaaa8fb88e3e27ff4eff6a41fc5fec93 (diff) | |
download | SCons-b896b7b9649003016537a005678c576511bf3338.zip SCons-b896b7b9649003016537a005678c576511bf3338.tar.gz SCons-b896b7b9649003016537a005678c576511bf3338.tar.bz2 |
[PR #3827] fix: don't iterate over object being modified
Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Tool')
-rw-r--r-- | SCons/Tool/tex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SCons/Tool/tex.py b/SCons/Tool/tex.py index a5e65c9..0ca7e2d 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': |