Commits

Stefan Zimmermann  committed fd1285d

Another list(*.keys()) for item deletion loop.

  • Participants
  • Parent commits 12b73a6
  • Branches python3-port

Comments (0)

Files changed (1)

File src/engine/SCons/SConfTests.py

         # We try to reset scons' state (including all global variables)
         import SCons.SConsign
         SCons.SConsign.write() # simulate normal scons-finish
-        for n in sys.modules.keys():
+        for n in list(sys.modules.keys()):
             if n.split('.')[0] == 'SCons' and n[:12] != 'SCons.compat':
                 m = sys.modules[n]
                 if isinstance(m, ModuleType):