Commit f3241a37 authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent 5a41daf0
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment