From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 22 Jul 2022 20:21:41 +0000 (-0700) Subject: Fix copy-friendliness of tutorial example (GH-93424) X-Git-Tag: v3.11.0b5~21 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3a33e9b7a0e8a81f36c2972193937f85a5ff94c3;p=thirdparty%2FPython%2Fcpython.git Fix copy-friendliness of tutorial example (GH-93424) (cherry picked from commit 34d11f1b0c0e1936a37581e0fb0daec637afca47) Co-authored-by: Chenwei Xiao --- diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst index 69ec0d4727c0..24cf0970e483 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