Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Better check coefficients using Integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
SAGitbot committed Apr 29, 2016
1 parent 3fcc597 commit 51f21d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/rings/continued_fraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -1155,8 +1155,8 @@ def apply_homography(self, a, b, c, d):
from sage.rings.number_field.number_field_element_quadratic import NumberFieldElement_quadratic
from sage.misc.gosper_iterator import gosper_iterator

if not (isinstance(a,int) and isinstance(b,int)
and isinstance(c,int) and isinstance(d,int)):
if not (isinstance(a,Integer) and isinstance(b,Integer)
and isinstance(c,Integer) and isinstance(d,Integer)):
raise AttributeError("The coefficients a, b, c, d must be integers.")

x = self.value()
Expand Down

0 comments on commit 51f21d5

Please sign in to comment.