From ac97bf4fd95da5cc6700a4270b632150a6051644 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Fri, 20 Dec 2013 14:16:21 -0800 Subject: [PATCH] asyncio: Export all abstract protocol and transport classes. Fixes issue #20029. --- Lib/asyncio/protocols.py | 3 ++- Lib/asyncio/transports.py | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Lib/asyncio/protocols.py b/Lib/asyncio/protocols.py index 1b8870c6d55..3c4f3f4adac 100644 --- a/Lib/asyncio/protocols.py +++ b/Lib/asyncio/protocols.py @@ -1,6 +1,7 @@ """Abstract Protocol class.""" -__all__ = ['Protocol', 'DatagramProtocol'] +__all__ = ['BaseProtocol', 'Protocol', 'DatagramProtocol', + 'SubprocessProtocol'] class BaseProtocol: diff --git a/Lib/asyncio/transports.py b/Lib/asyncio/transports.py index c2feb93d0ac..2d2469eec29 100644 --- a/Lib/asyncio/transports.py +++ b/Lib/asyncio/transports.py @@ -4,7 +4,9 @@ import sys PY34 = sys.version_info >= (3, 4) -__all__ = ['ReadTransport', 'WriteTransport', 'Transport'] +__all__ = ['BaseTransport', 'ReadTransport', 'WriteTransport', + 'Transport', 'DatagramTransport', 'SubprocessTransport', + ] class BaseTransport: