diff options
Diffstat (limited to 'coverage/backward.py')
-rw-r--r-- | coverage/backward.py | 8 |
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) |