From 171e6cb0e1a824f92d48cd3e777d1bd46c2dd877 Mon Sep 17 00:00:00 2001 From: Jon Parise Date: Fri, 19 Aug 2022 11:47:17 -0700 Subject: [PATCH] Remove legacy 'ast' import fallback (#208) --- src/pep8ext_naming.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/pep8ext_naming.py b/src/pep8ext_naming.py index 676805d..7abf0dd 100644 --- a/src/pep8ext_naming.py +++ b/src/pep8ext_naming.py @@ -1,5 +1,7 @@ """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 @@ -7,12 +9,6 @@ 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]