Skip to content

Commit 650ccde

Browse files
committed
Change check on args to allow strings in threading.Thread
1 parent 6f2edc3 commit 650ccde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/threading.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -909,8 +909,8 @@ class is implemented.
909909

910910
self._target = target
911911
self._name = name
912-
if isinstance(args, (str, bytes)) or not hasattr(args, '__iter__'):
913-
raise TypeError(f"'args' must be a non-string iterable like a tuple or list, not {type(args).__name__}")
912+
if not hasattr(args, '__iter__'):
913+
raise TypeError(f"'args' must be a iterable like a tuple or list, not {type(args).__name__}")
914914
self._args = args
915915
self._kwargs = kwargs
916916
if daemon is not None:

0 commit comments

Comments
 (0)