summaryrefslogtreecommitdiff
path: root/lab/disgen.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-07 20:07:04 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-07 20:07:04 -0500
commitb7035114aa515d9d1fe171a9bf678868e76d8f74 (patch)
tree60609f38079b9de18cdbee1d255e96e9c666dd31 /lab/disgen.py
parentd1c92d8e6b066a7b16d625b566853821afe8b46c (diff)
parentd93ddb9524a3e3535541812bbeade8e8ff822409 (diff)
downloadpython-coveragepy-git-b7035114aa515d9d1fe171a9bf678868e76d8f74.tar.gz
Branch analysis is now done with AST instead of bytecode
Diffstat (limited to 'lab/disgen.py')
-rw-r--r--lab/disgen.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/lab/disgen.py b/lab/disgen.py
index 4e4c6fa6..26bc56bc 100644
--- a/lab/disgen.py
+++ b/lab/disgen.py
@@ -1,4 +1,4 @@
-"""Disassembler of Python byte code into mnemonics."""
+"""Disassembler of Python bytecode into mnemonics."""
# Adapted from stdlib dis.py, but returns structured information
# instead of printing to stdout.
@@ -133,7 +133,7 @@ def byte_from_code(code, i):
return byte
def findlabels(code):
- """Detect all offsets in a byte code which are jump targets.
+ """Detect all offsets in a bytecode which are jump targets.
Return the list of offsets.
@@ -158,7 +158,7 @@ def findlabels(code):
return labels
def findlinestarts(code):
- """Find the offsets in a byte code which are start of lines in the source.
+ """Find the offsets in a bytecode which are start of lines in the source.
Generate pairs (offset, lineno) as described in Python/compile.c.