summaryrefslogtreecommitdiff
path: root/lab
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-04-18 09:30:44 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-04-18 09:30:44 -0400
commit416d324374b09c516e129f0a13fd8f15206f2c78 (patch)
treedd15691051d27a0b961c67e7f072f5b035da6859 /lab
parent13db3dfa8471333b4410e217fab3e80502075846 (diff)
downloadpython-coveragepy-git-416d324374b09c516e129f0a13fd8f15206f2c78.tar.gz
Fix lab/parser.py so we can use it to debug generators.
Diffstat (limited to 'lab')
-rw-r--r--lab/parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lab/parser.py b/lab/parser.py
index 1783468b..59bf7761 100644
--- a/lab/parser.py
+++ b/lab/parser.py
@@ -9,8 +9,8 @@ from optparse import OptionParser
import disgen
from coverage.misc import CoverageException
-from coverage.files import get_python_source
from coverage.parser import ByteParser, PythonParser
+from coverage.python import get_python_source
opcode_counts = collections.Counter()
@@ -82,7 +82,7 @@ class ParserMain(object):
self.disassemble(bp, histogram=options.histogram)
arcs = bp._all_arcs()
- if options.chunks and not options.dis:
+ if options.chunks:# and not options.dis:
chunks = bp._all_chunks()
if options.recursive:
print("%6d: %s" % (len(chunks), filename))