summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoradamantike <mike@fmanganiello.com.ar>2016-01-28 14:31:40 -0300
committerSybren A. Stüvel <sybren@stuvel.eu>2016-02-05 16:23:09 +0100
commit6a50b3d2234aed8b5b0f62d3f5f30de08dfd7b88 (patch)
tree242520d220c86e66ab49082737e667d0cb9baa7f
parentd0f1925bcd9c58d5ac7a3bc2d9686c602254eaeb (diff)
downloadrsa-git-6a50b3d2234aed8b5b0f62d3f5f30de08dfd7b88.tar.gz
Remove unneeded conditional on Jacobi function
-rw-r--r--rsa/prime.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/rsa/prime.py b/rsa/prime.py
index e4156ce..a449674 100644
--- a/rsa/prime.py
+++ b/rsa/prime.py
@@ -47,8 +47,6 @@ def jacobi(a, b):
assert a > 0
assert b > 0
- if a == 0:
- return 0
result = 1
while a > 1:
if a & 1: