diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-13 10:22:06 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-12-13 10:22:06 -0500 |
commit | 8613ebce1acfcfd780bc5394179c3bfbb9c2790e (patch) | |
tree | b2fd75ea865ad3cfa79bbcc04b98b02ad0db0c22 /coverage/backward.py | |
parent | bc99309895c8d2a93291c732c3c01ec343af6417 (diff) | |
download | python-coveragepy-git-8613ebce1acfcfd780bc5394179c3bfbb9c2790e.tar.gz |
Drop support for CPython 3.2. Now I can use u'' unicode literals freely.
Diffstat (limited to 'coverage/backward.py')
-rw-r--r-- | coverage/backward.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/coverage/backward.py b/coverage/backward.py index dfc169d4..030d336e 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -72,11 +72,6 @@ if sys.version_info >= (3, 0): """Convert bytes `b` to a string.""" return b.decode('utf8') - def unicode_literal(s): - """Make a plain string literal into unicode.""" - # In Python 3, string literals already are unicode. - return s - def binary_bytes(byte_values): """Produce a byte string with the ints from `byte_values`.""" return bytes(byte_values) @@ -99,11 +94,6 @@ else: """Convert bytes `b` to a string (no-op in 2.x).""" return b - def unicode_literal(s): - """Make a plain string literal into unicode.""" - # In Python 2, s is a byte string. - return s.decode('utf8') - def binary_bytes(byte_values): """Produce a byte string with the ints from `byte_values`.""" return "".join(chr(b) for b in byte_values) |