From b2fed2f452a5d558ce9de12bd6d609b7711da69e Mon Sep 17 00:00:00 2001 From: gkarpushkin Date: Sun, 29 Nov 2020 12:34:02 +0300 Subject: [PATCH 1/2] added Pool to public api --- asyncpg/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asyncpg/__init__.py b/asyncpg/__init__.py index d06718a5..801861b3 100644 --- a/asyncpg/__init__.py +++ b/asyncpg/__init__.py @@ -7,12 +7,12 @@ from .connection import connect, Connection # NOQA from .exceptions import * # NOQA -from .pool import create_pool # NOQA +from .pool import create_pool, Pool # NOQA from .protocol import Record # NOQA from .types import * # NOQA -__all__ = ('connect', 'create_pool', 'Record', 'Connection') + \ +__all__ = ('connect', 'create_pool', 'Pool', 'Record', 'Connection') + \ exceptions.__all__ # NOQA # The rules of changing __version__: From cb1c0fbbd3d257d1bebb3f5e9a5ac974a0825690 Mon Sep 17 00:00:00 2001 From: Elvis Pranskevichus Date: Sun, 29 Nov 2020 10:31:42 -0800 Subject: [PATCH 2/2] Fix trailing ws --- asyncpg/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asyncpg/__init__.py b/asyncpg/__init__.py index 96bd25f5..01af7904 100644 --- a/asyncpg/__init__.py +++ b/asyncpg/__init__.py @@ -16,6 +16,6 @@ __all__ = ( - ('connect', 'create_pool', 'Pool', 'Record', 'Connection') + ('connect', 'create_pool', 'Pool', 'Record', 'Connection') + exceptions.__all__ # NOQA )