Fix beginner mistake -- don't mix spaces and tabs.

This commit is contained in:
Raymond Hettinger 2007-05-19 01:50:11 +00:00
parent 5a41daf096
commit f3241a3727
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def NamedTuple(typename, s):
return '%(typename)s(%(reprtxt)s)' %% self
''' % locals()
for i, name in enumerate(field_names):
template += '\t%s = property(itemgetter(%d))\n' % (name, i)
template += '\n %s = property(itemgetter(%d))\n' % (name, i)
m = dict(itemgetter=_itemgetter)
exec template in m
result = m[typename]