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
commit64f0e2b6f9ac48cef3acd626bbd76a240c19a143 (patch)
treee0e4718ff7522f27d26dffb9e86df22c55625fcd /coverage/backward.py
parent379a975c1e126c8c3dae3f4f7798b003dc8f4aad (diff)
downloadpython-coveragepy-64f0e2b6f9ac48cef3acd626bbd76a240c19a143.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 5a32365..58d9cfe 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)