summaryrefslogtreecommitdiffstats
path: root/Doc/tutorial
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2022-07-22 20:21:41 (GMT)
committerGitHub <noreply@github.com>2022-07-22 20:21:41 (GMT)
commit3a33e9b7a0e8a81f36c2972193937f85a5ff94c3 (patch)
tree607ab2f889f4430b79d4f5d81a26c7330479437e /Doc/tutorial
parent5a48ab01e93c92594eac777c499d1e728ddf1f7e (diff)
downloadcpython-3a33e9b7a0e8a81f36c2972193937f85a5ff94c3.zip
cpython-3a33e9b7a0e8a81f36c2972193937f85a5ff94c3.tar.gz
cpython-3a33e9b7a0e8a81f36c2972193937f85a5ff94c3.tar.bz2
Fix copy-friendliness of tutorial example (GH-93424)
(cherry picked from commit 34d11f1b0c0e1936a37581e0fb0daec637afca47) Co-authored-by: Chenwei Xiao <chanvinxiao@163.com>
Diffstat (limited to 'Doc/tutorial')
-rw-r--r--Doc/tutorial/stdlib2.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Doc/tutorial/stdlib2.rst b/Doc/tutorial/stdlib2.rst
index 69ec0d4..24cf097 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