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

Commit

Permalink
Also verify IntegerAction instances
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Jan 4, 2018
1 parent 85cabe7 commit a2d60ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/structure/coerce.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ from .richcmp cimport rich_to_bool
from .sage_object cimport SageObject
from .parent cimport Set_PythonType, Parent_richcmp_element_without_coercion
from .element cimport bin_op_exception, parent, Element
from .coerce_actions import LeftModuleAction, RightModuleAction, IntegerAction
from .coerce_actions import LeftModuleAction, RightModuleAction
from .coerce_exceptions import CoercionException
from sage.rings.integer_fake cimport is_Integer
from sage.categories.map cimport Map
Expand Down Expand Up @@ -1687,8 +1687,6 @@ cdef class CoercionModel_cache_maps(CoercionModel):
"""
if action is None:
return action
elif isinstance(action, IntegerAction):
return action
cdef bint ok = True
try:
if action.left_domain() is not R:
Expand Down

0 comments on commit a2d60ef

Please sign in to comment.