summaryrefslogtreecommitdiff
path: root/coverage/sqldata.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r--coverage/sqldata.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py
index 82f37a9b..48d2d670 100644
--- a/coverage/sqldata.py
+++ b/coverage/sqldata.py
@@ -489,10 +489,10 @@ class CoverageSqliteData(SimpleReprMixin):
class Sqlite(SimpleReprMixin):
def __init__(self, filename, debug):
self.debug = debug if (debug and debug.should('sql')) else None
- if self.debug:
- self.debug.write("Connecting to {!r}".format(filename))
self.filename = filename
self.nest = 0
+ if self.debug:
+ self.debug.write("Connecting to {!r}".format(filename))
def connect(self):
# SQLite on Windows on py2 won't open a file if the filename argument