Skip to content
This repository has been archived by the owner on Jun 11, 2018. It is now read-only.

Commit

Permalink
Revert "prevent string interpolation with default empty tuple when co…
Browse files Browse the repository at this point in the history
…ntains %, fixes issue #94"

This reverts commit 8dadef7.
  • Loading branch information
jalvz committed Feb 19, 2016
1 parent 5bcae2f commit c1586f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opbeat/instrumentation/packages/dbapi2.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ def extract_signature(sql):
class CursorProxy(wrapt.ObjectProxy):
provider_name = None

def callproc(self, procname, params=None):
def callproc(self, procname, params=()):
return self._trace_sql(self.__wrapped__.callproc, procname,
params)

def execute(self, sql, params=None):
def execute(self, sql, params=()):
return self._trace_sql(self.__wrapped__.execute, sql, params)

def executemany(self, sql, param_list):
Expand Down

0 comments on commit c1586f6

Please sign in to comment.