Shorten lines.
authorGuido van Rossum <guido@python.org>
Thu, 19 Dec 2013 20:47:38 +0000 (12:47 -0800)
committerGuido van Rossum <guido@python.org>
Thu, 19 Dec 2013 20:47:38 +0000 (12:47 -0800)
Lib/asyncio/locks.py
Lib/test/test_asyncio/test_events.py

index 6cd6779e48f4c502e5ee2b531df26fe823f6bcc0..9e8529249eb73b5e23bab5cb79c07169f76da139 100644 (file)
@@ -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
index c6db4d1bc38a3c65477d0fb57e4718d3f4867b34..9545dd137a7979b8d1f40357375a74894313f1d9 100644 (file)
@@ -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)