diff options
author | Guido van Rossum <guido@python.org> | 2013-12-19 20:47:38 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2013-12-19 20:47:38 (GMT) |
commit | 994bf4332f03e2f7a7c642337853404f1f192071 (patch) | |
tree | aa1561e82351f712438468538338f13c697a233f /Lib | |
parent | 3b8df2683d608adf491a453899ef08550498dd46 (diff) | |
download | cpython-994bf4332f03e2f7a7c642337853404f1f192071.zip cpython-994bf4332f03e2f7a7c642337853404f1f192071.tar.gz cpython-994bf4332f03e2f7a7c642337853404f1f192071.tar.bz2 |
Shorten lines.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/asyncio/locks.py | 4 | ||||
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/Lib/asyncio/locks.py b/Lib/asyncio/locks.py index 6cd6779..9e85292 100644 --- a/Lib/asyncio/locks.py +++ b/Lib/asyncio/locks.py @@ -138,7 +138,7 @@ class Lock: class Event: - """An Event implementation, asynchronous equivalent to threading.Event. + """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. @@ -204,7 +204,7 @@ class Event: class Condition: - """A Condition implementation, asynchronous equivalent to threading.Condition. + """Asynchronous equivalent to threading.Condition. This class implements condition variable objects. A condition variable allows one or more coroutines to wait until they are notified by another diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index c6db4d1..9545dd1 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -720,7 +720,8 @@ class EventLoopTestsMixin: # incorrect server_hostname f_c = self.loop.create_connection(MyProto, host, port, ssl=sslcontext_client) - with self.assertRaisesRegex(ssl.CertificateError, + with self.assertRaisesRegex( + ssl.CertificateError, "hostname '127.0.0.1' doesn't match 'localhost'"): self.loop.run_until_complete(f_c) |