From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sun, 16 Jul 2023 07:32:26 +0000 (-0700) Subject: Doc: devmode: add -Xdev option to example (GH-106253) X-Git-Tag: v3.12.0rc1~146 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e4658bf44ea5da5a2b8934a336c396d6815a4586;p=thirdparty%2FPython%2Fcpython.git Doc: devmode: add -Xdev option to example (GH-106253) Doc: devmode: add -Xdev option to example (GH-106253) (cherry picked from commit 83bd568d2b57337a91ef046c1f52f9ebb03a7803) Co-authored-by: Simone Rubino --- diff --git a/Doc/library/devmode.rst b/Doc/library/devmode.rst index 977735990ffe..b2bad48a07e2 100644 --- a/Doc/library/devmode.rst +++ b/Doc/library/devmode.rst @@ -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()