DebugClients/Python/ThreadExtension.py

changeset 5651
982465f8389c
parent 5647
f40b614df103
child 5667
86554f131048
diff -r 4c52f07c186e -r 982465f8389c DebugClients/Python/ThreadExtension.py
--- a/DebugClients/Python/ThreadExtension.py	Wed Mar 22 18:45:15 2017 +0100
+++ b/DebugClients/Python/ThreadExtension.py	Wed Mar 22 18:50:20 2017 +0100
@@ -64,7 +64,7 @@
         
         sys.meta_path.insert(0, self)
 
-    def attachThread(self, target=None, args=None, kwargs={},
+    def attachThread(self, target=None, args=None, kwargs=None,
                      mainThread=False):
         """
         Public method to setup a standard thread for DebugClient to debug.
@@ -80,6 +80,9 @@
               started mainthread of the app
         @return identifier of the created thread
         """
+        if kwargs is None:
+            kwargs = {}
+        
         if mainThread:
             ident = _thread.get_ident()
             name = 'MainThread'

eric ide

mercurial