Fixed the exception scope behavior

This commit is contained in:
Tarek Ziade 2012-02-21 14:28:12 +01:00
parent d8f6e431f1
commit ef4b069970
5 changed files with 18 additions and 14 deletions

View file

@ -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