Skip to content

Commit 171e6cb

Browse files
authored
Remove legacy 'ast' import fallback (#208)
1 parent 5f24c45 commit 171e6cb

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/pep8ext_naming.py

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
"""Checker of PEP-8 Naming Conventions."""
2+
import ast
23
import sys
4+
from ast import iter_child_nodes
35
from collections import deque
46
from fnmatch import fnmatch
57
from functools import partial
68
from itertools import chain
79

810
from flake8 import style_guide
911

10-
try:
11-
import ast
12-
from ast import iter_child_nodes
13-
except ImportError:
14-
from flake8.util import ast, iter_child_nodes
15-
1612
__version__ = '0.13.1'
1713

1814
PYTHON_VERSION = sys.version_info[:3]

0 commit comments

Comments
 (0)