diff options
| author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 15:08:56 -0400 |
|---|---|---|
| committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 15:08:56 -0400 |
| commit | 3709566d41523e5bc31e1063b647e90f1469744a (patch) | |
| tree | e29eed3fa76fad9373432cda397ff7dc9cb24e4e /admin | |
| parent | 56017e683f8e31be252c94f23d4dd22a2d5603f9 (diff) | |
| download | passlib-3709566d41523e5bc31e1063b647e90f1469744a.tar.gz | |
cleanup old python compat -- replaced "unicode" alias in favor of "str"
Diffstat (limited to 'admin')
| -rw-r--r-- | admin/benchmarks.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/admin/benchmarks.py b/admin/benchmarks.py index 71c7b56..01e4bac 100644 --- a/admin/benchmarks.py +++ b/admin/benchmarks.py @@ -24,7 +24,6 @@ try: except ImportError: PasslibConfigWarning = None import passlib.utils.handlers as uh -from passlib.utils.compat import unicode from passlib.tests.utils import time_call # local @@ -113,7 +112,7 @@ class BlankHandler(uh.HasRounds, uh.HasSalt, uh.GenericHandler): return uh.render_mc3(self.ident, self.rounds, self.salt, self.checksum) def _calc_checksum(self, secret): - return unicode(secret[0:1]) + return secret[0:1] class AnotherHandler(BlankHandler): name = "another" |
