summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2005-07-15 09:13:21 (GMT)
committerGeorg Brandl <georg@python.org>2005-07-15 09:13:21 (GMT)
commita4a8b820aa32638e9f65efcb73e7559dad76028f (patch)
tree363088f0042c970df1d55ccb51506563c00c2312 /Lib/threading.py
parent8bfa8935ea2fc645e5f166f180c2ba18cf11ade3 (diff)
downloadcpython-a4a8b820aa32638e9f65efcb73e7559dad76028f.zip
cpython-a4a8b820aa32638e9f65efcb73e7559dad76028f.tar.gz
cpython-a4a8b820aa32638e9f65efcb73e7559dad76028f.tar.bz2
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 cbcc1f9..fe4490f 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