Commit 994bf433 authored by Guido van Rossum's avatar Guido van Rossum

Shorten lines.

parent 3b8df268
...@@ -138,7 +138,7 @@ class Lock: ...@@ -138,7 +138,7 @@ class Lock:
class Event: 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 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. to true with the set() method and reset to false with the clear() method.
...@@ -204,7 +204,7 @@ class Event: ...@@ -204,7 +204,7 @@ class Event:
class Condition: class Condition:
"""A Condition implementation, asynchronous equivalent to threading.Condition. """Asynchronous equivalent to threading.Condition.
This class implements condition variable objects. A condition variable This class implements condition variable objects. A condition variable
allows one or more coroutines to wait until they are notified by another allows one or more coroutines to wait until they are notified by another
......
...@@ -720,7 +720,8 @@ class EventLoopTestsMixin: ...@@ -720,7 +720,8 @@ class EventLoopTestsMixin:
# incorrect server_hostname # incorrect server_hostname
f_c = self.loop.create_connection(MyProto, host, port, f_c = self.loop.create_connection(MyProto, host, port,
ssl=sslcontext_client) ssl=sslcontext_client)
with self.assertRaisesRegex(ssl.CertificateError, with self.assertRaisesRegex(
ssl.CertificateError,
"hostname '127.0.0.1' doesn't match 'localhost'"): "hostname '127.0.0.1' doesn't match 'localhost'"):
self.loop.run_until_complete(f_c) self.loop.run_until_complete(f_c)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment