diff options
author | Brian Warner <warner@lothar.com> | 2013-10-01 16:39:36 -0700 |
---|---|---|
committer | Brian Warner <warner@lothar.com> | 2013-10-01 16:39:36 -0700 |
commit | c9fe3c226e0cf3cf44e89419fe0f073cf209546d (patch) | |
tree | 4a642fc6674738c3335a07a8f0c59d8bd5db8583 | |
parent | f1f27225e162e233bb2782788082d1412427ddde (diff) | |
download | ecdsa-c9fe3c226e0cf3cf44e89419fe0f073cf209546d.tar.gz |
ellipticcurve.Point.__eq__: update docstrings now that this isn't __cmp__
-rw-r--r-- | ecdsa/ellipticcurve.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ecdsa/ellipticcurve.py b/ecdsa/ellipticcurve.py index 4a25112..8af9559 100644 --- a/ecdsa/ellipticcurve.py +++ b/ecdsa/ellipticcurve.py @@ -74,13 +74,13 @@ class Point( object ): if order: assert self * order == INFINITY def __eq__( self, other ): - """Return 0 if the points are identical, 1 otherwise.""" + """Return True if the points are identical, False otherwise.""" if self.__curve == other.__curve \ and self.__x == other.__x \ and self.__y == other.__y: - return 1 + return True else: - return 0 + return False def __add__( self, other ): """Add one point to another point.""" |