src/eric7/QScintilla/Exporters/ExporterHTML.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 10372
1444b4bee64b
child 10431
64157aeb0312
--- a/src/eric7/QScintilla/Exporters/ExporterHTML.py	Sun Dec 03 16:44:52 2023 +0100
+++ b/src/eric7/QScintilla/Exporters/ExporterHTML.py	Sun Dec 03 19:46:34 2023 +0100
@@ -506,7 +506,7 @@
         if "sphinx" in sys.modules:
             # Make sure any Sphinx polution of docutils has been removed.
             unloadKeys = [
-                k for k in sys.modules.keys() if k.startswith(("docutils", "sphinx"))
+                k for k in sys.modules if k.startswith(("docutils", "sphinx"))
             ]
             for key in unloadKeys:
                 sys.modules.pop(key)

eric ide

mercurial