]> granicus.if.org Git - python/commitdiff
Issue #16265: Fix collapsing of code sample in tutorial.
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 17 Oct 2012 13:41:28 +0000 (16:41 +0300)
committerAndrew Svetlov <andrew.svetlov@gmail.com>
Wed, 17 Oct 2012 13:41:28 +0000 (16:41 +0300)
Thanks to Yongzhi Pan from docs@

Doc/tutorial/inputoutput.rst

index 45de518de81cc49950d557629737af48894083c9..73143bee803fd8906976d657cf8357bd84dac223 100644 (file)
@@ -184,7 +184,7 @@ square brackets ``'[]'`` to access the keys ::
 
    >>> table = {'Sjoerd': 4127, 'Jack': 4098, 'Dcab': 8637678}
    >>> print('Jack: {0[Jack]:d}; Sjoerd: {0[Sjoerd]:d}; '
-             'Dcab: {0[Dcab]:d}'.format(table))
+   ...       'Dcab: {0[Dcab]:d}'.format(table))
    Jack: 4098; Sjoerd: 4127; Dcab: 8637678
 
 This could also be done by passing the table as keyword arguments with the '**'