[Python-checkins] Fix copy-friendliness of tutorial example (GH-93424)

zware webhook-mailer at python.org
Fri Jul 22 16:12:04 EDT 2022


https://github.com/python/cpython/commit/34d11f1b0c0e1936a37581e0fb0daec637afca47
commit: 34d11f1b0c0e1936a37581e0fb0daec637afca47
branch: main
author: Chenwei Xiao <chanvinxiao at 163.com>
committer: zware <zachary.ware at gmail.com>
date: 2022-07-22T15:11:48-05:00
summary:

Fix copy-friendliness of tutorial example (GH-93424)

files:
M Doc/tutorial/stdlib2.rst

diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
index abdf5abda984f..0c101c1f20723 100644
--- a/Doc/tutorial/stdlib2.rst
+++ b/Doc/tutorial/stdlib2.rst
@@ -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
 



More information about the Python-checkins mailing list