src/eric7/QScintilla/Exporters/ExporterHTML.py

branch
eric7
changeset 10373
093dcebe5ecb
parent 10372
1444b4bee64b
child 10431
64157aeb0312
equal deleted inserted replaced
10372:1444b4bee64b 10373:093dcebe5ecb
504 @return processed HTML (string) 504 @return processed HTML (string)
505 """ 505 """
506 if "sphinx" in sys.modules: 506 if "sphinx" in sys.modules:
507 # Make sure any Sphinx polution of docutils has been removed. 507 # Make sure any Sphinx polution of docutils has been removed.
508 unloadKeys = [ 508 unloadKeys = [
509 k for k in sys.modules.keys() if k.startswith(("docutils", "sphinx")) 509 k for k in sys.modules if k.startswith(("docutils", "sphinx"))
510 ] 510 ]
511 for key in unloadKeys: 511 for key in unloadKeys:
512 sys.modules.pop(key) 512 sys.modules.pop(key)
513 513
514 try: 514 try:

eric ide

mercurial