commit | 3c4a5463b2e022cc43478de78a0afbd283b3ddef | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Sun Apr 12 12:08:12 2009 +0000 |
committer | Georg Brandl <georg@python.org> | Sun Apr 12 12:08:12 2009 +0000 |
tree | 75b20206fa7754ddd757c6dd7fb1baa10c4b1f07 | |
parent | 507690c6e5849e98e35c1848cdac0008b465a3b3 [diff] [blame] |
#5704: let python -3 imply -t as well.
diff --git a/Modules/main.c b/Modules/main.c index 1a58071..d6df92f 100644 --- a/Modules/main.c +++ b/Modules/main.c
@@ -432,6 +432,10 @@ return 0; } + if (Py_Py3kWarningFlag && !Py_TabcheckFlag) + /* -3 implies -t (but not -tt) */ + Py_TabcheckFlag = 1; + if (!Py_InspectFlag && (p = Py_GETENV("PYTHONINSPECT")) && *p != '\0') Py_InspectFlag = 1;