diff options
Diffstat (limited to 'coverage/sqldata.py')
-rw-r--r-- | coverage/sqldata.py | 8 |
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: |