Skip to content

Commit 9de70ba

Browse files
author
Dmitry Inuytin
authored
pop loop in connection init due to backward compatibility (#808)
* pop loop in connection init due to backward compatibility * loop pop with default
1 parent 1545924 commit 9de70ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aiopg/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ def __init__(
7575
self._waiter = self._loop.create_future()
7676

7777
kwargs['async_'] = kwargs.pop('async', True)
78+
kwargs.pop('loop', None) # backward compatibility
7879
self._conn = psycopg2.connect(dsn, **kwargs)
7980

8081
self._dsn = self._conn.dsn

0 commit comments

Comments
 (0)