summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-11-16 00:48:13 (GMT)
committerGuido van Rossum <guido@python.org>2007-11-16 00:48:13 (GMT)
commit053b4f3a0e3ef404b1c663229fd6ebaf0a1fb0a9 (patch)
tree264eeaa492a5221ebef3754350a79fc558e0da37 /Lib
parent3d392eb3273aefeca2741aee9f0e31e3b79b1043 (diff)
downloadcpython-053b4f3a0e3ef404b1c663229fd6ebaf0a1fb0a9.zip
cpython-053b4f3a0e3ef404b1c663229fd6ebaf0a1fb0a9.tar.gz
cpython-053b4f3a0e3ef404b1c663229fd6ebaf0a1fb0a9.tar.bz2
Oops, forgot to test this after the merge.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/collections.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/collections.py b/Lib/collections.py
index 7b23948..a553c9f 100644
--- a/Lib/collections.py
+++ b/Lib/collections.py
@@ -70,7 +70,7 @@ def namedtuple(typename, field_names, verbose=False):
return dict(zip(%(field_names)r, self))
def __replace__(self, **kwds):
'Return a new %(typename)s object replacing specified fields with new values'
- return %(typename)s(**dict(zip(%(field_names)r, self) + kwds.items())) \n''' % locals()
+ return %(typename)s(**dict(list(zip(%(field_names)r, self)) + list(kwds.items()))) \n''' % locals()
for i, name in enumerate(field_names):
template += ' %s = property(itemgetter(%d))\n' % (name, i)
if verbose:
@@ -105,7 +105,7 @@ if __name__ == '__main__':
# test and demonstrate ability to override methods
Point.__repr__ = lambda self: 'Point(%.3f, %.3f)' % self
- print p
+ print(p)
import doctest
TestResults = namedtuple('TestResults', 'failed attempted')