]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix copy-friendliness of tutorial example (GH-93424)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 22 Jul 2022 20:21:07 +0000 (13:21 -0700)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 20:21:07 +0000 (13:21 -0700)
(cherry picked from commit 34d11f1b0c0e1936a37581e0fb0daec637afca47)

Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Doc/tutorial/stdlib2.rst

index 298034d3b4844002a8cfb734d1b9bad627bc19fd..857754274da207f293da8e602a84776d889c0d53 100644 (file)
@@ -108,6 +108,7 @@ placeholders such as the current date, image sequence number, or file format::
    >>> photofiles = ['img_1074.jpg', 'img_1076.jpg', 'img_1077.jpg']
    >>> class BatchRename(Template):
    ...     delimiter = '%'
+   ...
    >>> fmt = input('Enter rename style (%d-date %n-seqnum %f-format):  ')
    Enter rename style (%d-date %n-seqnum %f-format):  Ashley_%n%f