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

Commit

Permalink
trac 22871 two more changes with integer_types
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Chapoton committed Apr 26, 2017
1 parent 09cae0a commit 7b44396
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/sage/interfaces/singular.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,7 @@ def _coerce_map_from_(self, S):
return True
except TypeError:
pass
elif S is int or S is long:
elif S in integer_types:
return True
return None

Expand Down
6 changes: 3 additions & 3 deletions src/sage/misc/mathml.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#
# http://www.gnu.org/licenses/
#*****************************************************************************
from six import iteritems
from six import iteritems, integer_types


def list_function(x):
Expand All @@ -47,9 +47,9 @@ def str_function(x):
tuple:tuple_function,
bool:bool_function,
str: str_function,
int:str,
long:str,
float:str}
for x in integer_types:
mathml_table[x] = str

class MathML(str):
def __repr__(self):
Expand Down

0 comments on commit 7b44396

Please sign in to comment.