mirror of https://github.com/python/cpython
Fix beginner mistake -- don't mix spaces and tabs.
This commit is contained in:
parent
5a41daf096
commit
f3241a3727
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue