Skip to content

Commit

Permalink
Remove legacy 'ast' import fallback (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
jparise authored Aug 19, 2022
1 parent 5f24c45 commit 171e6cb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/pep8ext_naming.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
"""Checker of PEP-8 Naming Conventions."""
import ast
import sys
from ast import iter_child_nodes
from collections import deque
from fnmatch import fnmatch
from functools import partial
from itertools import chain

from flake8 import style_guide

try:
import ast
from ast import iter_child_nodes
except ImportError:
from flake8.util import ast, iter_child_nodes

__version__ = '0.13.1'

PYTHON_VERSION = sys.version_info[:3]
Expand Down

0 comments on commit 171e6cb

Please sign in to comment.