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
commit8b7c4c1bf2bd0ea40c6da1c9d09f4f978835fa3b (patch)
tree4b6ff883159689534ea612ff68f7d4bf09bb4727 /coverage/backward.py
parentbadf53c6cb26118cfdf3388a6eb09fd21e6c7428 (diff)
downloadpython-coveragepy-git-8b7c4c1bf2bd0ea40c6da1c9d09f4f978835fa3b.tar.gz
Remove the old bytecode-based branch analyzer
--HG-- branch : ast-branch
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 4fc72215..50d49a0f 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: