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 | 879e1932da2ff38d9c56ee6f85c52615f909e6ee (patch) | |
tree | 9f01c834d73697489389b0ba7c8a94ca50b79903 /coverage/backward.py | |
parent | 19d50dd9d61858471a712aa37ce04aed3932178f (diff) | |
download | python-coveragepy-879e1932da2ff38d9c56ee6f85c52615f909e6ee.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 dfc169d..030d336 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) |