]> granicus.if.org Git - python/commitdiff
Remove a tuple unpacking in a parameter list to suppress the SyntaxWarning with
authorBrett Cannon <bcannon@gmail.com>
Sat, 2 Aug 2008 03:13:46 +0000 (03:13 +0000)
committerBrett Cannon <bcannon@gmail.com>
Sat, 2 Aug 2008 03:13:46 +0000 (03:13 +0000)
-3.

Lib/threading.py

index 8a1de42bea6eb208ee13ed80a8e9bf6a2e1270bf..d88f1be4ea37d48a2d069e17a22fe643f1d26888 100644 (file)
@@ -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