From c1586f6a45e77cfcc82f36615ba7d6fb610867b5 Mon Sep 17 00:00:00 2001 From: jalvz Date: Fri, 19 Feb 2016 11:08:28 +0100 Subject: [PATCH] Revert "prevent string interpolation with default empty tuple when contains %, fixes issue #94" This reverts commit 8dadef713cf0a136bf6730c407166f0569186ce4. --- opbeat/instrumentation/packages/dbapi2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opbeat/instrumentation/packages/dbapi2.py b/opbeat/instrumentation/packages/dbapi2.py index 13811b44..11e93259 100644 --- a/opbeat/instrumentation/packages/dbapi2.py +++ b/opbeat/instrumentation/packages/dbapi2.py @@ -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):