diff --git a/mathics/builtin/numeric.py b/mathics/builtin/numeric.py index 952fc396e3..8879463762 100644 --- a/mathics/builtin/numeric.py +++ b/mathics/builtin/numeric.py @@ -17,7 +17,6 @@ import hashlib import zlib import math -import six from collections import namedtuple from contextlib import contextmanager from itertools import chain @@ -936,7 +935,7 @@ def convert_float(x, base, exponents): fexps = list(range(-1, -int(precision + 1), -1)) real_part = convert_float(x - int(x), base, precision + 1) return int_part + real_part - elif isinstance(x, six.integer_types): + elif isinstance(x, int): return int_part else: raise TypeError(x) diff --git a/pymathics/setup.py b/pymathics/setup.py index 453cbacfcd..f7fd099ffc 100644 --- a/pymathics/setup.py +++ b/pymathics/setup.py @@ -75,7 +75,6 @@ "mpmath>=1.1.0", "python-dateutil", "colorama", - "six>=1.10", ] diff --git a/pymathics/testpymathicsmodule/__init__.py b/pymathics/testpymathicsmodule/__init__.py index a446174471..b60956063f 100644 --- a/pymathics/testpymathicsmodule/__init__.py +++ b/pymathics/testpymathicsmodule/__init__.py @@ -4,7 +4,6 @@ This is an example of an external mathics module. It just defines a function and a symbol, in the same way is done for builtin symbols. """ -import six from mathics.builtin.base import Builtin, Symbol, String, AtomBuiltin # To be recognized as an external mathics module, the following variable