mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 13:06:53 +00:00
Fixed the exception scope behavior
This commit is contained in:
parent
d8f6e431f1
commit
ef4b069970
5 changed files with 18 additions and 14 deletions
|
|
@ -4,10 +4,10 @@
|
|||
MIT License.
|
||||
"""
|
||||
try:
|
||||
from compiler import parse
|
||||
iter_child_nodes = None
|
||||
from compiler import parse # NOQA
|
||||
iter_child_nodes = None # NOQA
|
||||
except ImportError:
|
||||
from ast import parse, iter_child_nodes
|
||||
from ast import parse, iter_child_nodes # NOQA
|
||||
|
||||
import optparse
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue