diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-12-02 13:31:16 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-12-02 13:31:16 (GMT) |
commit | c37dd614b6acd841ff0f638e9ef21a7d8db561f0 (patch) | |
tree | da3b61101ba21bf6b8a91b58c5887d2f9d62b1b0 /Lib | |
parent | 0da1d29c8a414cb5e46de97a87e75c72c8c457d0 (diff) | |
download | cpython-c37dd614b6acd841ff0f638e9ef21a7d8db561f0.zip cpython-c37dd614b6acd841ff0f638e9ef21a7d8db561f0.tar.gz cpython-c37dd614b6acd841ff0f638e9ef21a7d8db561f0.tar.bz2 |
asyncio: document locks
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/locks.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index 2d458a9..b4c316a 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py @@ -79,7 +79,7 @@ class Lock: return '<{} [{}]>'.format(res[1:-1], extra) def locked(self): - """Return true if lock is acquired.""" + """Return True if lock is acquired.""" return self._locked @tasks.coroutine @@ -138,7 +138,7 @@ class Lock: class Event: - """An Event implementation, our equivalent to threading.Event. + """An Event implementation, asynchronous equivalent to threading.Event. Class implementing event objects. An event manages a flag that can be set to true with the set() method and reset to false with the clear() method. @@ -162,7 +162,7 @@ class Event: return '<{} [{}]>'.format(res[1:-1], extra) def is_set(self): - """Return true if and only if the internal flag is true.""" + """Return True if and only if the internal flag is true.""" return self._value def set(self): |