summaryrefslogtreecommitdiff
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-07-15 09:13:21 +0000
committerGeorg Brandl <georg@python.org>2005-07-15 09:13:21 +0000
commit6fe467c15d15a92fdc843af688363a96060a3554 (patch)
tree0a738ac5057ec81acd2d7595b3016d7af50e029d /Lib/threading.py
parentd4dab8958c64a12d5d58e55543dc41cf64bd5057 (diff)
downloadcpython-6fe467c15d15a92fdc843af688363a96060a3554.tar.gz
bug [ 1238170 ] threading.Thread uses {} as default argument
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index cbcc1f91b2..fe4490fa3a 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -374,9 +374,11 @@ class Thread(_Verbose):
__exc_info = _sys.exc_info
def __init__(self, group=None, target=None, name=None,
- args=(), kwargs={}, verbose=None):
+ args=(), kwargs=None, verbose=None):
assert group is None, "group argument must be None for now"
_Verbose.__init__(self, verbose)
+ if kwargs is None:
+ kwargs = {}
self.__target = target
self.__name = str(name or _newname())
self.__args = args