summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2010-09-04 16:33:49 -0400
committerNed Batchelder <ned@nedbatchelder.com>2010-09-04 16:33:49 -0400
commit48e3ee4479ad568abd7c89edda44afaacb3111fb (patch)
tree400aaf540a7eb134f32b96f3aa36eb2448898503 /coverage/parser.py
parent057d56dfdc92a13acbdd8bcba6048a5f794622fa (diff)
downloadpython-coveragepy-48e3ee4479ad568abd7c89edda44afaacb3111fb.tar.gz
Silence one lint warning
Diffstat (limited to 'coverage/parser.py')
-rw-r--r--coverage/parser.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/coverage/parser.py b/coverage/parser.py
index 25e474c..ae618ce 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -488,7 +488,6 @@ class ByteParser(object):
penult = ult
ult = bc
-
if chunks:
# The last two bytecodes could be a dummy "return None" that
# shouldn't be counted as real code. Every Python code object seems
@@ -500,13 +499,13 @@ class ByteParser(object):
# This is "return None", but is it dummy? A real line
# would be a last chunk all by itself.
if chunks[-1].byte != penult.offset:
- exit = -self.code.co_firstlineno
+ ex = -self.code.co_firstlineno
# Split the last chunk
last_chunk = chunks[-1]
- last_chunk.exits.remove(exit)
+ last_chunk.exits.remove(ex)
last_chunk.exits.add(penult.offset)
chunk = Chunk(penult.offset)
- chunk.exits.add(exit)
+ chunk.exits.add(ex)
chunks.append(chunk)
# Give all the chunks a length.