diff --git a/Lib/collections.py b/Lib/collections.py index adba81c879d..fa9a9a0f8a9 100644 --- a/Lib/collections.py +++ b/Lib/collections.py @@ -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]