Removed a left over from Python2 times. eric7

Tue, 14 Dec 2021 19:44:25 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 14 Dec 2021 19:44:25 +0100
branch
eric7
changeset 8831
9d676f442b1b
parent 8830
3bbdfb81b2c3
child 8832
a5b6128b4828

Removed a left over from Python2 times.

eric7/DebugClients/Python/ModuleLoader.py file | annotate | diff | comparison | revisions
--- a/eric7/DebugClients/Python/ModuleLoader.py	Tue Dec 14 19:43:53 2021 +0100
+++ b/eric7/DebugClients/Python/ModuleLoader.py	Tue Dec 14 19:44:25 2021 +0100
@@ -36,7 +36,7 @@
                 del sys.modules[moduleName]
         
         self.__modulesToPatch = (
-            'thread', '_thread', 'threading',
+            '_thread', 'threading',
             'greenlet',
             'subprocess',
             'multiprocessing',
@@ -62,7 +62,7 @@
         
         ## Add hook for _thread.start_new_thread
         if (
-            fullname in ('thread', '_thread') and
+            fullname == '_thread' and
             not hasattr(module, 'eric7_patched')
         ):
             module.eric7_patched = True

eric ide

mercurial