summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChenwei Xiao <chanvinxiao@163.com>2022-07-22 20:11:48 (GMT)
committerGitHub <noreply@github.com>2022-07-22 20:11:48 (GMT)
commit34d11f1b0c0e1936a37581e0fb0daec637afca47 (patch)
tree8c4643d22f8de30286aa0cde1ba85343cdc70c61
parente402b26b7fb953a2f0c17a0044bb6d6cbd726e54 (diff)
downloadcpython-34d11f1b0c0e1936a37581e0fb0daec637afca47.zip
cpython-34d11f1b0c0e1936a37581e0fb0daec637afca47.tar.gz
cpython-34d11f1b0c0e1936a37581e0fb0daec637afca47.tar.bz2
Fix copy-friendliness of tutorial example (GH-93424)
-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 abdf5ab..0c101c1 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