]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: devmode: add -Xdev option to example (GH-106253)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 16 Jul 2023 07:32:26 +0000 (00:32 -0700)
committerGitHub <noreply@github.com>
Sun, 16 Jul 2023 07:32:26 +0000 (16:32 +0900)
Doc: devmode: add -Xdev option to example (GH-106253)
(cherry picked from commit 83bd568d2b57337a91ef046c1f52f9ebb03a7803)

Co-authored-by: Simone Rubino <daemo00@gmail.com>
Doc/library/devmode.rst

index 977735990ffe92ef747c5a072f5dd3c0eb9557e8..b2bad48a07e27ec0a430e461593046a53140a37a 100644 (file)
@@ -198,7 +198,7 @@ descriptor" error when finalizing the file object:
 
 .. code-block:: shell-session
 
-    $ python script.py
+    $ python -X dev script.py
     import os
     script.py:10: ResourceWarning: unclosed file <_io.TextIOWrapper name='script.py' mode='r' encoding='UTF-8'>
       main()