diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2010-09-04 16:33:49 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2010-09-04 16:33:49 -0400 |
commit | aa460b847382cca842f6b058ff82b2e65868233f (patch) | |
tree | 493deca022c872626284a5cfd44f19410d52f977 /coverage/parser.py | |
parent | 0c983b61fe5cd6fe7468f51bb9a642d8933e91e4 (diff) | |
download | python-coveragepy-git-aa460b847382cca842f6b058ff82b2e65868233f.tar.gz |
Silence one lint warning
Diffstat (limited to 'coverage/parser.py')
-rw-r--r-- | coverage/parser.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/coverage/parser.py b/coverage/parser.py index 25e474cc..ae618ce5 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. |