mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-03-10 22:43:52 +00:00
fix pyflakes warnings in figleaf
This commit is contained in:
parent
5ad6c43622
commit
6587645f76
@ -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():
|
||||
|
@ -1,7 +1,6 @@
|
||||
#! /usr/bin/env python
|
||||
import sys
|
||||
import figleaf
|
||||
from cPickle import load
|
||||
import os
|
||||
import re
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user