Skip to content

Commit

Permalink
Consistent pg_connection alias usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Dec 11, 2024
1 parent 8e8b759 commit e3d7941
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _instrument(self, **kwargs):

dbapi.wrap_connect(
__name__,
psycopg.Connection, # pylint: disable=no-member
pg_connection, # pylint: disable=no-member
"connect",
self._DATABASE_SYSTEM,
self._CONNECTION_ATTRIBUTES,
Expand All @@ -189,7 +189,7 @@ def _uninstrument(self, **kwargs):
""" "Disable Psycopg instrumentation"""
dbapi.unwrap_connect(psycopg, "connect") # pylint: disable=no-member
dbapi.unwrap_connect(
psycopg.Connection,
pg_connection,
"connect", # pylint: disable=no-member
)
dbapi.unwrap_connect(
Expand Down

0 comments on commit e3d7941

Please sign in to comment.