Skip to content

Commit c9fe3c2

Browse files
committed
ellipticcurve.Point.__eq__: update docstrings now that this isn't __cmp__
1 parent f1f2722 commit c9fe3c2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ecdsa/ellipticcurve.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,13 @@ def __init__( self, curve, x, y, order = None ):
7474
if order: assert self * order == INFINITY
7575

7676
def __eq__( self, other ):
77-
"""Return 0 if the points are identical, 1 otherwise."""
77+
"""Return True if the points are identical, False otherwise."""
7878
if self.__curve == other.__curve \
7979
and self.__x == other.__x \
8080
and self.__y == other.__y:
81-
return 1
81+
return True
8282
else:
83-
return 0
83+
return False
8484

8585
def __add__( self, other ):
8686
"""Add one point to another point."""

0 commit comments

Comments
 (0)