Skip to content

Commit 77104f5

Browse files
methaneDaemo00
andauthored
Doc: devmode: add -Xdev option to example (GH-106253)
(cherry picked from commit 83bd568) Co-authored-by: Simone Rubino <daemo00@gmail.com>
1 parent 501178a commit 77104f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/devmode.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ descriptor" error when finalizing the file object:
198198

199199
.. code-block:: shell-session
200200
201-
$ python3 script.py
201+
$ python3 -X dev script.py
202202
import os
203203
script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='script.py' mode='r' encoding='UTF-8'>
204204
main()

0 commit comments

Comments
 (0)