From c7a086c5a0c8c66deeb7befd8d76183cd45ac74f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 6 Oct 2019 16:12:15 -0400 Subject: Quiet pylint --- coverage/sqldata.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'coverage') 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: -- cgit v1.2.1