From 8613ebce1acfcfd780bc5394179c3bfbb9c2790e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 13 Dec 2014 10:22:06 -0500 Subject: Drop support for CPython 3.2. Now I can use u'' unicode literals freely. --- coverage/backward.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'coverage/backward.py') 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) -- cgit v1.2.1