summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkip Montanaro <skip@pobox.com>2001-08-19 05:53:47 (GMT)
committerSkip Montanaro <skip@pobox.com>2001-08-19 05:53:47 (GMT)
commitae8454aeb3d49d464b762690d014cf11da3370c0 (patch)
treed0901b85e9d1a8ac5c5f87af95d26c7faaf11e7c
parent8cb00e2387efe2304e9eba6f2c3be6cc977f680e (diff)
downloadcpython-ae8454aeb3d49d464b762690d014cf11da3370c0.zip
cpython-ae8454aeb3d49d464b762690d014cf11da3370c0.tar.gz
cpython-ae8454aeb3d49d464b762690d014cf11da3370c0.tar.bz2
of course I muffed it separating the notes code from the initial_value
code. grrr...
-rw-r--r--Lib/threading.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index e0d1cc0..004ccb6 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -268,8 +268,8 @@ class _Semaphore(_Verbose):
else:
self.__value = self.__value - 1
if __debug__:
- self._note("%s.acquire: success, value=%s(%s)",
- self, self.__value, self.__initial_value)
+ self._note("%s.acquire: success, value=%s",
+ self, self.__value)
rc = 1
self.__cond.release()
return rc
@@ -278,8 +278,8 @@ class _Semaphore(_Verbose):
self.__cond.acquire()
self.__value = self.__value + 1
if __debug__:
- self._note("%s.release: success, value=%s(%s)",
- self, self.__value, self.__initial_value)
+ self._note("%s.release: success, value=%s",
+ self, self.__value)
self.__cond.notify()
self.__cond.release()