summaryrefslogtreecommitdiff
path: root/rsa/pkcs1_v2.py
diff options
context:
space:
mode:
authoryjqiang <13307130285@fudan.edu.cn>2018-09-12 10:07:01 +0800
committerSybren A. Stüvel <sybren@stuvel.eu>2018-09-16 12:14:27 +0200
commit11bf33264c620684fcae6c248df30c0a444babdf (patch)
tree973f5c000e32d4a1832a92f085f6f839fd37a3b0 /rsa/pkcs1_v2.py
parent7619f14036519d19cbfd217823a354635c5c78fc (diff)
downloadrsa-git-11bf33264c620684fcae6c248df30c0a444babdf.tar.gz
speedup
"if A and B" if mostly A is True then we should judge B at first
Diffstat (limited to 'rsa/pkcs1_v2.py')
-rw-r--r--rsa/pkcs1_v2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rsa/pkcs1_v2.py b/rsa/pkcs1_v2.py
index d6d2423..5f9c7dd 100644
--- a/rsa/pkcs1_v2.py
+++ b/rsa/pkcs1_v2.py
@@ -97,7 +97,7 @@ if __name__ == '__main__':
if failures:
break
- if count and count % 100 == 0:
+ if count % 100 == 0 and count:
print('%i times' % count)
print('Doctests done')