summaryrefslogtreecommitdiff
path: root/passlib/utils/binary.py
diff options
context:
space:
mode:
authorEli Collins <elic@assurancetechnologies.com>2020-10-06 14:52:34 -0400
committerEli Collins <elic@assurancetechnologies.com>2020-10-06 14:52:34 -0400
commit56017e683f8e31be252c94f23d4dd22a2d5603f9 (patch)
tree1893084b022faa3fe179cffef5537be202ff62d4 /passlib/utils/binary.py
parente82f75c13f9815f82b0cf046b2a502925f194703 (diff)
downloadpasslib-56017e683f8e31be252c94f23d4dd22a2d5603f9.tar.gz
cleanup old python compat -- unified "unicode_or_bytes" aliases
Diffstat (limited to 'passlib/utils/binary.py')
-rw-r--r--passlib/utils/binary.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/passlib/utils/binary.py b/passlib/utils/binary.py
index 813d5cc..5c55477 100644
--- a/passlib/utils/binary.py
+++ b/passlib/utils/binary.py
@@ -20,7 +20,7 @@ from passlib import exc
from passlib.utils.compat import (
bascii_to_str,
iter_byte_chars, join_byte_values, join_byte_elems,
- unicode, unicode_or_bytes_types,
+ unicode, unicode_or_bytes,
)
from passlib.utils.decor import memoized_property
# from passlib.utils import BASE64_CHARS, HASH64_CHARS
@@ -126,7 +126,7 @@ def compile_byte_translation(mapping, source=None):
assert isinstance(source, bytes) and len(source) == 255
target = list(iter_byte_chars(source))
for k, v in mapping.items():
- if isinstance(k, unicode_or_bytes_types):
+ if isinstance(k, unicode_or_bytes):
k = ord(k)
assert isinstance(k, int) and 0 <= k < 256
if isinstance(v, unicode):