Skip to content

Commit

Permalink
cython/core/abelian_group.pyx: Use import
Browse files Browse the repository at this point in the history
  • Loading branch information
mkoeppe committed Dec 30, 2024
1 parent 4e1689a commit 0e0df34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cython/core/abelian_group.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ cdef class AbelianGroup():
'as a sequence.')
int_types = [int]
if _within_sage:
int_types += [sage.rings.integer.Integer]
from sage.rings.integer import Integer
int_types += [Integer]
for c in self.divisors:
assert type(c) in int_types and c >= 0,\
'Elementary divisors must be non-negative integers.\n'
Expand Down
1 change: 1 addition & 0 deletions python/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ def parse(self, string, name='<string>'):
try:
from sage.all import PSL, BraidGroup
except ImportError:
import sage.groups.perm_gps.permgroup_element
from sage.groups.perm_gps.permgroup_named import PSL
from sage.groups.braid import BraidGroup
globs = {'PSL': PSL, 'BraidGroup': BraidGroup}
Expand Down

0 comments on commit 0e0df34

Please sign in to comment.