diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-04-18 09:30:44 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-04-18 09:30:44 -0400 |
commit | 416d324374b09c516e129f0a13fd8f15206f2c78 (patch) | |
tree | dd15691051d27a0b961c67e7f072f5b035da6859 /lab/parser.py | |
parent | 13db3dfa8471333b4410e217fab3e80502075846 (diff) | |
download | python-coveragepy-git-416d324374b09c516e129f0a13fd8f15206f2c78.tar.gz |
Fix lab/parser.py so we can use it to debug generators.
Diffstat (limited to 'lab/parser.py')
-rw-r--r-- | lab/parser.py | 4 |
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)) |