diff options
author | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:13:46 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2008-08-02 03:13:46 (GMT) |
commit | 200505015252c5ab029b56a8b69a065d2e1c8adb (patch) | |
tree | 0eeb69d40d13763f3f721f225e688648dac9c8c4 | |
parent | 8df0e4ffc384534be349c4fbb361e9e9a06a8d0b (diff) | |
download | cpython-200505015252c5ab029b56a8b69a065d2e1c8adb.zip cpython-200505015252c5ab029b56a8b69a065d2e1c8adb.tar.gz cpython-200505015252c5ab029b56a8b69a065d2e1c8adb.tar.bz2 |
Remove a tuple unpacking in a parameter list to suppress the SyntaxWarning with
-3.
-rw-r--r-- | Lib/threading.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/threading.py b/Lib/threading.py index 8a1de42..d88f1be 100644 --- a/Lib/threading.py +++ b/Lib/threading.py @@ -151,7 +151,8 @@ class _RLock(_Verbose): # Internal methods used by condition variables - def _acquire_restore(self, (count, owner)): + def _acquire_restore(self, count_owner): + count, owner = count_owner self.__block.acquire() self.__count = count self.__owner = owner |