aboutsummaryrefslogtreecommitdiff
path: root/rsa/_compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'rsa/_compat.py')
-rw-r--r--rsa/_compat.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/rsa/_compat.py b/rsa/_compat.py
index deef1fc..6824bdb 100644
--- a/rsa/_compat.py
+++ b/rsa/_compat.py
@@ -37,21 +37,6 @@ else:
# Else we just assume 64-bit processor keeping up with modern times.
MACHINE_WORD_SIZE = 64
-try:
- # < Python3
- unicode_type = unicode
-except NameError:
- # Python3.
- unicode_type = str
-
-# Fake byte literals.
-if str is unicode_type:
- def byte_literal(s):
- return s.encode('latin1')
-else:
- def byte_literal(s):
- return s
-
# Range generator.
try:
# < Python3
@@ -66,12 +51,6 @@ try:
except NameError:
integer_types = (int,)
-b = byte_literal
-
-# To avoid calling b() multiple times in tight loops.
-ZERO_BYTE = b('\x00')
-EMPTY_BYTE = b('')
-
def is_bytes(obj):
"""