summaryrefslogtreecommitdiff
path: root/coverage/backward.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-10 21:12:08 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-10 21:12:08 -0500
commit05cdf73cd68bdec9fd0b8cf33603a1f5a0e7999b (patch)
treef2479542078d7d2153ab36c657e78c6497a9cdc7 /coverage/backward.py
parent08c37202cb992865e502e6f80e430b5125be1afc (diff)
downloadpython-coveragepy-git-05cdf73cd68bdec9fd0b8cf33603a1f5a0e7999b.tar.gz
Remove functions we're not using.
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 5a323659..58d9cfea 100644
--- a/coverage/backward.py
+++ b/coverage/backward.py
@@ -71,10 +71,6 @@ if env.PY3:
"""Convert string `s` to bytes."""
return s.encode('utf8')
- def to_string(b):
- """Convert bytes `b` to a string."""
- return b.decode('utf8')
-
def binary_bytes(byte_values):
"""Produce a byte string with the ints from `byte_values`."""
return bytes(byte_values)
@@ -93,10 +89,6 @@ else:
"""Convert string `s` to bytes (no-op in 2.x)."""
return s
- def to_string(b):
- """Convert bytes `b` to a string (no-op in 2.x)."""
- return b
-
def binary_bytes(byte_values):
"""Produce a byte string with the ints from `byte_values`."""
return "".join(chr(b) for b in byte_values)