Skip to content

Commit

Permalink
Merge pull request #893 from rocky/delete-six
Browse files Browse the repository at this point in the history
Remove dependency on six
  • Loading branch information
GarkGarcia authored Sep 15, 2020
2 parents 9d8c3d8 + 7ef7231 commit a05fe2d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions mathics/builtin/numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import hashlib
import zlib
import math
import six
from collections import namedtuple
from contextlib import contextmanager
from itertools import chain
Expand Down Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion pymathics/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@
"mpmath>=1.1.0",
"python-dateutil",
"colorama",
"six>=1.10",
]


Expand Down
1 change: 0 additions & 1 deletion pymathics/testpymathicsmodule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a05fe2d

Please sign in to comment.