]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix copy-friendliness of tutorial example (GH-93424)
authorChenwei Xiao <chanvinxiao@163.com>
Fri, 22 Jul 2022 20:11:48 +0000 (04:11 +0800)
committerGitHub <noreply@github.com>
Fri, 22 Jul 2022 20:11:48 +0000 (15:11 -0500)
Doc/tutorial/stdlib2.rst

index abdf5abda984f5eb92048ffdbd03781b279eba2e..0c101c1f20723503b6712b872d9b030ce5f6090b 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