]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix typo (reported by Hiro Ashiya).
authorRaymond Hettinger <python@rcn.com>
Sat, 25 Jun 2011 09:39:00 +0000 (11:39 +0200)
committerRaymond Hettinger <python@rcn.com>
Sat, 25 Jun 2011 09:39:00 +0000 (11:39 +0200)
Doc/library/collections.rst

index 0b45fe123dff3154abb6e0e657816cae6ce57cf5..4975f7477065173e96a6d7f40ba82ca7a388ce36 100644 (file)
@@ -821,10 +821,10 @@ the items are returned in the order their keys were first added.
 
           >>> d = OrderedDict.fromkeys('abcde')
           >>> d.move_to_end('b')
-          >>> ''.join(d.keys)
+          >>> ''.join(d.keys())
           'acdeb'
           >>> d.move_to_end('b', last=False)
-          >>> ''.join(d.keys)
+          >>> ''.join(d.keys())
           'bacde'
 
       .. versionadded:: 3.2