Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
tammy-baylis-swi committed Nov 16, 2024
1 parent ca2b884 commit 0b2340b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def __exit__(self, *args, **kwargs):

def _new_cursor_factory(
db_api: DatabaseApiIntegration = None,
base_factory: CMySQLCursor = None,
cursor_factory: CMySQLCursor = None,
tracer_provider: trace_api.TracerProvider = None,
enable_commenter: bool = False,
):
Expand All @@ -370,13 +370,13 @@ def _new_cursor_factory(
)

# Latter is base class for all mysql-connector cursors
base_factory = base_factory or CMySQLCursor
cursor_factory = cursor_factory or CMySQLCursor
_cursor_tracer = CursorTracer(
db_api,
enable_commenter,
)

class TracedCursorFactory(base_factory):
class TracedCursorFactory(cursor_factory):
def execute(self, *args, **kwargs):
return _cursor_tracer.traced_execution(
self, super().execute, *args, **kwargs
Expand Down

0 comments on commit 0b2340b

Please sign in to comment.