summaryrefslogtreecommitdiff
path: root/coverage/backward.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2016-01-06 16:27:24 -0500
committerNed Batchelder <ned@nedbatchelder.com>2016-01-06 16:27:24 -0500
commit4a08806f814fc350187537d10081f2dfb4195396 (patch)
tree69306d67a7ae359772540ff13f5dc5d7bf5fe58f /coverage/backward.py
parent074613f8237b8b0d9324c3a4cd7d0aed8be1309c (diff)
downloadpython-coveragepy-4a08806f814fc350187537d10081f2dfb4195396.tar.gz
Remove the old bytecode-based branch analyzer
Diffstat (limited to 'coverage/backward.py')
-rw-r--r--coverage/backward.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/coverage/backward.py b/coverage/backward.py
index 4fc7221..50d49a0 100644
--- a/coverage/backward.py
+++ b/coverage/backward.py
@@ -93,10 +93,6 @@ if env.PY3:
"""Produce a byte string with the ints from `byte_values`."""
return bytes(byte_values)
- def byte_to_int(byte_value):
- """Turn an element of a bytes object into an int."""
- return byte_value
-
def bytes_to_ints(bytes_value):
"""Turn a bytes object into a sequence of ints."""
# In Python 3, iterating bytes gives ints.
@@ -111,10 +107,6 @@ else:
"""Produce a byte string with the ints from `byte_values`."""
return "".join(chr(b) for b in byte_values)
- def byte_to_int(byte_value):
- """Turn an element of a bytes object into an int."""
- return ord(byte_value)
-
def bytes_to_ints(bytes_value):
"""Turn a bytes object into a sequence of ints."""
for byte in bytes_value: