mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
fixes issue #1522237, bad init check in _threading_local
This commit is contained in:
parent
dc8c2adad6
commit
561d5aa47f
2 changed files with 16 additions and 1 deletions
|
@ -154,7 +154,7 @@ class _localbase(object):
|
|||
object.__setattr__(self, '_local__args', (args, kw))
|
||||
object.__setattr__(self, '_local__lock', RLock())
|
||||
|
||||
if args or kw and (cls.__init__ is object.__init__):
|
||||
if (args or kw) and (cls.__init__ is object.__init__):
|
||||
raise TypeError("Initialization arguments are not supported")
|
||||
|
||||
# We need to create the thread dict in anticipation of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue