Kaydet (Commit) 3c4a5463 authored tarafından Georg Brandl's avatar Georg Brandl

#5704: let python -3 imply -t as well.

üst 507690c6
...@@ -12,6 +12,8 @@ What's New in Python 2.7 alpha 1 ...@@ -12,6 +12,8 @@ What's New in Python 2.7 alpha 1
Core and Builtins Core and Builtins
----------------- -----------------
- Issue #5704: the "-3" command-line option now implies "-t".
- Issue #2170: refactored xml.dom.minidom.normalize, increasing both - Issue #2170: refactored xml.dom.minidom.normalize, increasing both
its clarity and its speed. its clarity and its speed.
......
...@@ -432,6 +432,10 @@ Py_Main(int argc, char **argv) ...@@ -432,6 +432,10 @@ Py_Main(int argc, char **argv)
return 0; return 0;
} }
if (Py_Py3kWarningFlag && !Py_TabcheckFlag)
/* -3 implies -t (but not -tt) */
Py_TabcheckFlag = 1;
if (!Py_InspectFlag && if (!Py_InspectFlag &&
(p = Py_GETENV("PYTHONINSPECT")) && *p != '\0') (p = Py_GETENV("PYTHONINSPECT")) && *p != '\0')
Py_InspectFlag = 1; Py_InspectFlag = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment