diff options
author | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 14:25:15 -0400 |
---|---|---|
committer | Eli Collins <elic@assurancetechnologies.com> | 2020-10-06 14:25:15 -0400 |
commit | ff4b4bbccd4756fb2f93d0b622c42bee3a4f93dd (patch) | |
tree | 708a1322ed0239f9fc56c2fb2dfeff16f8839d48 /passlib/crypto/des.py | |
parent | 582508faa9eb193bd6941c3d484cc75eff8f2cc0 (diff) | |
download | passlib-ff4b4bbccd4756fb2f93d0b622c42bee3a4f93dd.tar.gz |
cleanup old python compat -- removed irange() alias
Diffstat (limited to 'passlib/crypto/des.py')
-rw-r--r-- | passlib/crypto/des.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/passlib/crypto/des.py b/passlib/crypto/des.py index 3f87aef..32fbf91 100644 --- a/passlib/crypto/des.py +++ b/passlib/crypto/des.py @@ -47,8 +47,7 @@ The netbsd des-crypt implementation has some nice notes on how this all works - import struct # pkg from passlib import exc -from passlib.utils.compat import join_byte_values, byte_elem_value, \ - irange, irange, int_types +from passlib.utils.compat import join_byte_values, byte_elem_value, int_types # local __all__ = [ "expand_des_key", @@ -606,7 +605,7 @@ def _unpack56(value): ## assert 0 <= value < 0x80, "value out of range" ## return (value<<1) | (0x9669 >> ((value ^ (value >> 4)) & 0xf)) & 1 -_EXPAND_ITER = irange(49,-7,-7) +_EXPAND_ITER = range(49, -7, -7) def expand_des_key(key): """convert DES from 7 bytes to 8 bytes (by inserting empty parity bits)""" |