Skip to content

Commit

Permalink
call public psycopg2.connect method (#3)
Browse files Browse the repository at this point in the history
closes #2
  • Loading branch information
mjgp2 committed Jan 15, 2024
1 parent 626d9fc commit 5a16029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psycopg2_pool/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def __init__(self, minconn=1, maxconn=float('inf'), idle_timeout=600, **connect_
def _connect(self, for_immediate_use=False):
"""Open a new connection.
"""
conn = psycopg2._connect(**self.connect_kwargs)
conn = psycopg2.connect(**self.connect_kwargs)
if for_immediate_use:
self.connections_in_use.add(conn)
else:
Expand Down

0 comments on commit 5a16029

Please sign in to comment.