summaryrefslogtreecommitdiff
path: root/coverage/sqldata.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-10-06 16:12:15 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-10-06 16:12:15 -0400
commitc7a086c5a0c8c66deeb7befd8d76183cd45ac74f (patch)
tree06a4a63e90bded1dabf86d15cdcf8f9e426ad3e8 /coverage/sqldata.py
parent671c3800c7a6495e971f682958ca0b52cab5bf3c (diff)
downloadpython-coveragepy-git-c7a086c5a0c8c66deeb7befd8d76183cd45ac74f.tar.gz
Quiet pylint
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r--coverage/sqldata.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py
index 044ddbf1..499f43c3 100644
--- a/coverage/sqldata.py
+++ b/coverage/sqldata.py
@@ -256,8 +256,8 @@ class CoverageData(SimpleReprMixin):
self._has_arcs = bool(int(row[0]))
self._has_lines = not self._has_arcs
- for path, id in db.execute("select path, id from file"):
- self._file_map[path] = id
+ for path, file_id in db.execute("select path, id from file"):
+ self._file_map[path] = file_id
def _connect(self):
"""Get the SqliteDb object to use."""
@@ -482,7 +482,9 @@ class CoverageData(SimpleReprMixin):
re-map paths to match the local machine's.
"""
if self._debug.should('dataop'):
- self._debug.write("Updating with data from %r" % (getattr(other_data, '_filename', '???'),))
+ self._debug.write("Updating with data from %r" % (
+ getattr(other_data, '_filename', '???'),
+ ))
if self._has_lines and other_data._has_arcs:
raise CoverageException("Can't combine arc data with line data")
if self._has_arcs and other_data._has_lines: