Skip to content

Commit 33adacb

Browse files
committed
ellipticcurve.py: fix pyflakes
1 parent a3eb0a3 commit 33adacb

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/ecdsa/ellipticcurve.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@
3737

3838
try:
3939
from gmpy2 import mpz
40-
GMPY=True
40+
GMPY = True
4141
except ImportError:
4242
try:
4343
from gmpy import mpz
44-
GMPY=True
44+
GMPY = True
4545
except ImportError:
46-
GMPY=False
46+
GMPY = False
4747

4848

4949
from six import python_2_unicode_compatible
@@ -84,13 +84,13 @@ def __init__(self, p, a, b, h=None):
8484
self.__a = a
8585
self.__b = b
8686
self.__h = h
87-
87+
8888
def __eq__(self, other):
89-
if isinstance(other, CurveFp):
89+
if isinstance(other, CurveFp):
9090
"""Return True if the curves are identical, False otherwise."""
9191
return self.__p == other.__p \
92-
and self.__a == other.__a \
93-
and self.__b == other.__b
92+
and self.__a == other.__a \
93+
and self.__b == other.__b
9494
return NotImplemented
9595

9696
def __hash__(self):
@@ -155,7 +155,7 @@ def __init__(self, curve, x, y, z, order=None, generator=False):
155155
self.__y = y
156156
self.__z = z
157157
self.__order = order
158-
self.__precompute=[]
158+
self.__precompute = []
159159
if generator:
160160
assert order
161161
i = 1
@@ -192,7 +192,7 @@ def __eq__(self, other):
192192
# compare the fractions by bringing them to the same denominator
193193
# depend on short-circuit to save 4 multiplications in case of inequality
194194
return (x1 * zz2 - x2 * zz1) % p == 0 and \
195-
(y1 * zz2 * z2 - y2 * zz1 * z1) % p == 0
195+
(y1 * zz2 * z2 - y2 * zz1 * z1) % p == 0
196196

197197
def order(self):
198198
"""Return the order of the point.
@@ -604,10 +604,10 @@ def __init__(self, curve, x, y, order=None):
604604

605605
def __eq__(self, other):
606606
"""Return True if the points are identical, False otherwise."""
607-
if isinstance(other, Point):
607+
if isinstance(other, Point):
608608
return self.__curve == other.__curve \
609-
and self.__x == other.__x \
610-
and self.__y == other.__y
609+
and self.__x == other.__x \
610+
and self.__y == other.__y
611611
return NotImplemented
612612

613613
def __neg__(self):

0 commit comments

Comments
 (0)