summaryrefslogtreecommitdiff
path: root/Doc/tutorial/stdlib2.rst
diff options
context:
space:
mode:
authorChenwei Xiao <chanvinxiao@163.com>2022-07-23 04:11:48 +0800
committerGitHub <noreply@github.com>2022-07-22 15:11:48 -0500
commit34d11f1b0c0e1936a37581e0fb0daec637afca47 (patch)
tree8c4643d22f8de30286aa0cde1ba85343cdc70c61 /Doc/tutorial/stdlib2.rst
parente402b26b7fb953a2f0c17a0044bb6d6cbd726e54 (diff)
downloadcpython-git-34d11f1b0c0e1936a37581e0fb0daec637afca47.tar.gz
Fix copy-friendliness of tutorial example (GH-93424)
Diffstat (limited to 'Doc/tutorial/stdlib2.rst')
-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 abdf5abda9..0c101c1f20 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