fix pyflakes warnings in figleaf

This commit is contained in:
Brian Warner 2007-01-04 18:04:43 -07:00
parent 5ad6c43622
commit 6587645f76
2 changed files with 5 additions and 6 deletions

View File

@ -60,12 +60,12 @@ import os
import threading
from cPickle import dump, load
# import builtin sets if in > 2.4, otherwise use 'sets' module.
if 'set' not in dir(__builtins__):
from sets import Set as set
### import builtin sets if in > 2.4, otherwise use 'sets' module.
# we require 2.4 or later
assert set
from token import *
from token import tok_name, NEWLINE, STRING, INDENT, DEDENT, COLON
import parser, types, symbol
def get_token_name(x):
@ -355,7 +355,7 @@ def get_info():
#############
def display_ast():
l = figleaf._LineGrabber(open(sys.argv[1]))
l = LineGrabber(open(sys.argv[1]))
l.pretty_print()
def main():

View File

@ -1,7 +1,6 @@
#! /usr/bin/env python
import sys
import figleaf
from cPickle import load
import os
import re