Skip to content

Commit

Permalink
added import handling for joint py2/3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Oct 23, 2017
1 parent f7e0178 commit 1326122
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion diophantine.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@
from builtins import next
from builtins import range
from copy import deepcopy
from math import copysign, sqrt, log10, floor, gcd
from math import copysign, sqrt, log10, floor
try:
from math import gcd # Py >= 3.6
except ImportError:
from fractions import gcd # Py < 3.6
from sympy import Matrix, zeros, ones, eye
from itertools import chain, product

Expand Down

0 comments on commit 1326122

Please sign in to comment.