Skip to content

Commit

Permalink
Remove PYTHONVERBOSE from help
Browse files Browse the repository at this point in the history
  • Loading branch information
slozier committed Jun 22, 2023
1 parent 9b71691 commit 7b16d29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Src/IronPython/Hosting/PythonOptionsParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ public sealed class PythonOptionsParser : OptionsParser<PythonConsoleOptions> {
{ "-S", "Don't imply 'import site' on initialization" },
{ "-u", "Unbuffered stdout & stderr" },
#if !IRONPYTHON_WINDOW
{ "-v", "Verbose (trace import statements) (also PYTHONVERBOSE=x)" },
{ "-v", "Verbose (trace import statements)" },
#endif
{ "-V", "print the Python version number and exit (also --version)\nwhen given twice, print more information about the build" },
{ "-W arg", "Warning control (arg is action:message:category:module:lineno) also IRONPYTHONWARNINGS=arg" },
Expand Down
4 changes: 2 additions & 2 deletions Src/StdLib/Lib/site.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def execsitecustomize():
except ImportError:
pass
except Exception as err:
if os.environ.get("PYTHONVERBOSE"):
if sys.flags.verbose:
sys.excepthook(*sys.exc_info())
else:
sys.stderr.write(
Expand All @@ -525,7 +525,7 @@ def execusercustomize():
except ImportError:
pass
except Exception as err:
if os.environ.get("PYTHONVERBOSE"):
if sys.flags.verbose:
sys.excepthook(*sys.exc_info())
else:
sys.stderr.write(
Expand Down

0 comments on commit 7b16d29

Please sign in to comment.