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

miss-islington webhook-mailer at python.org
Fri Jul 22 16:21:45 EDT 2022


https://github.com/python/cpython/commit/3a33e9b7a0e8a81f36c2972193937f85a5ff94c3
commit: 3a33e9b7a0e8a81f36c2972193937f85a5ff94c3
branch: 3.11
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: miss-islington <31488909+miss-islington at users.noreply.github.com>
date: 2022-07-22T13:21:41-07:00
summary:

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

(cherry picked from commit 34d11f1b0c0e1936a37581e0fb0daec637afca47)

Co-authored-by: Chenwei Xiao <chanvinxiao at 163.com>

files:
M Doc/tutorial/stdlib2.rst

diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
index 69ec0d4727c0b..24cf0970e4832 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