summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-20 05:41:41 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-20 05:41:41 -0500
commit56899edb4220a8540d12c482582278439396718b (patch)
treeb85879c2ae0d7f4caf591d4a3ec4dfd4a1b15e43 /coverage/parser.py
parentbbf1219c55cc39701e02dae4324210ef9c6928c3 (diff)
downloadpython-coveragepy-56899edb4220a8540d12c482582278439396718b.tar.gz
Silence the last of the pylint warnings.
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index 636a835..3694b92 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -529,7 +529,7 @@ class ByteParser(object):
chunks.append(chunk)
# Give all the chunks a length.
- chunks[-1].length = bc.next_offset - chunks[-1].byte
+ chunks[-1].length = bc.next_offset - chunks[-1].byte # pylint: disable=W0631,C0301
for i in range(len(chunks)-1):
chunks[i].length = chunks[i+1].byte - chunks[i].byte
@@ -576,7 +576,7 @@ class ByteParser(object):
else:
# No chunk for this byte!
raise Exception("Couldn't find chunk @ %d" % byte)
- byte_chunks[byte] = ch
+ byte_chunks[byte] = ch # pylint: disable=W0631
if ch.line:
lines.add(ch.line)