diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 15:15:19 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 15:15:19 -0400 |
| commit | 6ff2625d8f297b2e28aa53183734a00e61d93c09 (patch) | |
| tree | 58aa1cdf8f9fc0d43d7a8be7ef3a6c7abc586613 /passlib/tests | |
| parent | ea6e35700e799777d24295dd9d9af2d66f6ec8fc (diff) | |
| download | passlib-6ff2625d8f297b2e28aa53183734a00e61d93c09.tar.gz | |
cleanup old python compat -- removed uascii_to_str() wrapper
Diffstat (limited to 'passlib/tests')
| -rw-r--r-- | passlib/tests/test_utils_handlers.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/passlib/tests/test_utils_handlers.py b/passlib/tests/test_utils_handlers.py index 8527304..422c87d 100644 --- a/passlib/tests/test_utils_handlers.py +++ b/passlib/tests/test_utils_handlers.py @@ -11,8 +11,7 @@ import warnings # pkg from passlib.hash import ldap_md5, sha256_crypt from passlib.exc import MissingBackendError, PasslibHashWarning -from passlib.utils.compat import str_to_uascii, \ - uascii_to_str +from passlib.utils.compat import str_to_uascii import passlib.utils.handlers as uh from passlib.tests.utils import HandlerCase, TestCase # module @@ -773,7 +772,7 @@ class SaltedHash(uh.HasSalt, uh.GenericHandler): def to_string(self): hash = u"@salt%s%s" % (self.salt, self.checksum) - return uascii_to_str(hash) + return hash def _calc_checksum(self, secret): if isinstance(secret, str): |
