Skip to content

Commit

Permalink
Revert "Consistent pg_connection alias usage"
Browse files Browse the repository at this point in the history
This reverts commit e3d7941.
  • Loading branch information
tammy-baylis-swi committed Dec 11, 2024
1 parent e3d7941 commit a94a591
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__,
pg_connection, # pylint: disable=no-member
psycopg.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(
pg_connection,
psycopg.Connection,
"connect", # pylint: disable=no-member
)
dbapi.unwrap_connect(
Expand Down

0 comments on commit a94a591

Please sign in to comment.