diff options
author | Jack Diederich <jackdied@gmail.com> | 2010-02-22 19:55:22 +0000 |
---|---|---|
committer | Jack Diederich <jackdied@gmail.com> | 2010-02-22 19:55:22 +0000 |
commit | 1ce6136018b6e1447368e1cc9ec3b70b0dd8729d (patch) | |
tree | 07e5df5c148950d9e67015e359c660e477a41492 /Lib/_threading_local.py | |
parent | b72b0eb357e9237e9de95dadda18fda433f88aac (diff) | |
download | cpython-git-1ce6136018b6e1447368e1cc9ec3b70b0dd8729d.tar.gz |
fixes issue #1522237, bad init check in _threading_local
Diffstat (limited to 'Lib/_threading_local.py')
-rw-r--r-- | Lib/_threading_local.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/_threading_local.py b/Lib/_threading_local.py index 243d84ef7c..e953597005 100644 --- a/Lib/_threading_local.py +++ b/Lib/_threading_local.py @@ -155,7 +155,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 |