Minor cleanups

This commit is contained in:
Alex Gr?nholm 2010-12-18 10:25:15 +00:00
parent 0ac4b6bfd5
commit 67afb9fa7a

View File

@ -1,12 +1,6 @@
import sys
#if sys.version_info >= (2, 6):
# from collections import namedtuple
#else:
## Copied from Python 2.6 standard library
from keyword import iskeyword as _iskeyword from keyword import iskeyword as _iskeyword
from operator import itemgetter as _itemgetter from operator import itemgetter as _itemgetter
_sys = sys import sys as _sys
def namedtuple(typename, field_names, verbose=False): def namedtuple(typename, field_names, verbose=False):
"""Returns a new subclass of tuple with named fields. """Returns a new subclass of tuple with named fields.