Skip to content

Commit

Permalink
MAINT: sort imports using isort
Browse files Browse the repository at this point in the history
  • Loading branch information
reneeotten committed Feb 1, 2021
1 parent 8a80074 commit 114cbfa
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
9 changes: 4 additions & 5 deletions asteval/asteval.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@
'getattr' for example)
"""
import ast
import time
import inspect
from sys import exc_info, stdout, stderr
from sys import exc_info, stderr, stdout
import time

from .astutils import (UNSAFE_ATTRS, HAS_NUMPY, make_symbol_table, numpy,
op2func, ExceptionHolder, ReturnedNone,
valid_symbol_name)
from .astutils import (HAS_NUMPY, UNSAFE_ATTRS, ExceptionHolder, ReturnedNone,
make_symbol_table, numpy, op2func, valid_symbol_name)

ALL_NODES = ['arg', 'assert', 'assign', 'attribute', 'augassign', 'binop',
'boolop', 'break', 'call', 'compare', 'continue', 'delete',
Expand Down
10 changes: 5 additions & 5 deletions asteval/astutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
Matthew Newville <newville@cars.uchicago.edu>,
The University of Chicago
"""
import io
import re
import ast
import io
import math
import numbers
import re
from sys import exc_info
from tokenize import (tokenize as generate_tokens,
ENCODING as tk_ENCODING,
NAME as tk_NAME)
from tokenize import ENCODING as tk_ENCODING
from tokenize import NAME as tk_NAME
from tokenize import tokenize as generate_tokens

HAS_NUMPY = False
numpy = None
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python
from setuptools import setup

import versioneer

long_description = """ASTEVAL provides a numpy-aware, safe(ish) 'eval' function
Expand Down
12 changes: 6 additions & 6 deletions tests/test_asteval.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
Base TestCase for asteval
"""
import ast
from functools import partial
from io import StringIO
import math
import os
from sys import version_info
from tempfile import NamedTemporaryFile
import textwrap
import time
import unittest
import pytest
from io import StringIO

from functools import partial
from sys import version_info
from tempfile import NamedTemporaryFile
import pytest

from asteval import NameFinder, Interpreter, make_symbol_table
from asteval import Interpreter, NameFinder, make_symbol_table

HAS_NUMPY = False
try:
Expand Down

0 comments on commit 114cbfa

Please sign in to comment.