diff options
author | Anton Ovchinnikov <revolver112@gmail.com> | 2015-03-29 13:27:40 +0200 |
---|---|---|
committer | Anton Ovchinnikov <revolver112@gmail.com> | 2015-03-29 13:27:40 +0200 |
commit | 0bcb18c14e6095004feda160594ba0e6467f679a (patch) | |
tree | 9ae7af08ae37b920c9caac5d5153e8587f2a1428 /src | |
parent | 491579a0d39efb20c0edda4453de2d1daa62f6a6 (diff) | |
download | cryptography-0bcb18c14e6095004feda160594ba0e6467f679a.tar.gz cryptography-0bcb18c14e6095004feda160594ba0e6467f679a.tar.bz2 cryptography-0bcb18c14e6095004feda160594ba0e6467f679a.zip |
Simplify chained comparison
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/backends/openssl/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cryptography/hazmat/backends/openssl/utils.py b/src/cryptography/hazmat/backends/openssl/utils.py index 498c100d..001121f9 100644 --- a/src/cryptography/hazmat/backends/openssl/utils.py +++ b/src/cryptography/hazmat/backends/openssl/utils.py @@ -16,7 +16,7 @@ def _truncate_digest(digest, order_bits): if 8 * digest_len > order_bits: rshift = 8 - (order_bits & 0x7) - assert rshift > 0 and rshift < 8 + assert 0 < rshift < 8 mask = 0xFF >> rshift << rshift |