summaryrefslogtreecommitdiff
path: root/coverage/parser.py
diff options
context:
space:
mode:
authorNed Batchelder <nedbat@gmail.com>2014-10-01 07:32:19 -0400
committerNed Batchelder <nedbat@gmail.com>2014-10-01 07:32:19 -0400
commit9af6bd3df6db9288199b2dbf9e243d14e6dc6e01 (patch)
treece58d9307ea15167ffb9e8b40fa9e743bd430c04 /coverage/parser.py
parent866c1262f241641768c21f328048164fe56ca331 (diff)
parentdb8836e5d6c69b8861b1e5ffaf90e8215c02cad2 (diff)
downloadpython-coveragepy-9af6bd3df6db9288199b2dbf9e243d14e6dc6e01.tar.gz
Merged in alex_gaynor/coveragepy/alex_gaynor/improve-performance-of-coverage-under-py-1411425050845 (pull request #40)
Improve performance of coverage under PyPy.
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 c5e95ba..e7b9c02 100644
--- a/coverage/parser.py
+++ b/coverage/parser.py
@@ -413,7 +413,7 @@ class ByteParser(object):
for _, l in bp._bytes_lines():
yield l
- def _block_stack_repr(self, block_stack):
+ def _block_stack_repr(self, block_stack): # pragma: debugging
"""Get a string version of `block_stack`, for debugging."""
blocks = ", ".join(
"(%s, %r)" % (dis.opname[b[0]], b[1]) for b in block_stack
@@ -552,7 +552,7 @@ class ByteParser(object):
#self.validate_chunks(chunks)
return chunks
- def validate_chunks(self, chunks):
+ def validate_chunks(self, chunks): # pragma: debugging
"""Validate the rule that chunks have a single entrance."""
# starts is the entrances to the chunks
starts = set(ch.byte for ch in chunks)