Skip to content

Commit

Permalink
Fix copy-friendliness of tutorial example (pythonGH-93424)
Browse files Browse the repository at this point in the history
(cherry picked from commit 34d11f1)

Co-authored-by: Chenwei Xiao <[email protected]>
  • Loading branch information
miss-islington and vinzid authored Jul 22, 2022
1 parent 5a48ab0 commit 3a33e9b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Doc/tutorial/stdlib2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3a33e9b

Please sign in to comment.