Update elliptic-generalized.py

This commit is contained in:
Andrew Miller 2017-09-13 12:00:05 -05:00 committed by GitHub
parent 7fc6fe0fb8
commit 74b905ccec
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class Point(object):
def __mul__(self, n):
if not isinstance(n, int):
if not (isinstance(n, int) or isinstance(n, long)):
raise Exception("Can't scale a point by something which isn't an int!")
else:
if n < 0: