summaryrefslogtreecommitdiffstats
path: root/Lib/threading.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2013-03-11 03:34:16 (GMT)
committerRaymond Hettinger <python@rcn.com>2013-03-11 03:34:16 (GMT)
commitb65e579926f0fdffc61c642737e627406470b351 (patch)
treeeb4d91d11e5762896792c78712ab679fce9139ff /Lib/threading.py
parentec4b174de4177298c1421786764170cc62f9b748 (diff)
downloadcpython-b65e579926f0fdffc61c642737e627406470b351.zip
cpython-b65e579926f0fdffc61c642737e627406470b351.tar.gz
cpython-b65e579926f0fdffc61c642737e627406470b351.tar.bz2
Improve variable names
Diffstat (limited to 'Lib/threading.py')
-rw-r--r--Lib/threading.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/threading.py b/Lib/threading.py
index 0261ee2..415a993 100644
--- a/Lib/threading.py
+++ b/Lib/threading.py
@@ -222,14 +222,14 @@ class Condition:
def notify(self, n=1):
if not self._is_owned():
raise RuntimeError("cannot notify on un-acquired lock")
- __waiters = self._waiters
- waiters = _deque(_islice(__waiters, n))
- if not waiters:
+ all_waiters = self._waiters
+ waiters_to_notify = _deque(_islice(all_waiters, n))
+ if not waiters_to_notify:
return
- for waiter in waiters:
+ for waiter in waiters_to_notify:
waiter.release()
try:
- __waiters.remove(waiter)
+ all_waiters.remove(waiter)
except ValueError:
pass