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

Remove meaning of -ttt, but still accept -t option on cmdline for compatibility.

üst a26f8ca6
...@@ -231,8 +231,6 @@ always available. ...@@ -231,8 +231,6 @@ always available.
+------------------------------+------------------------------------------+ +------------------------------+------------------------------------------+
| :const:`ignore_environment` | -E | | :const:`ignore_environment` | -E |
+------------------------------+------------------------------------------+ +------------------------------+------------------------------------------+
| :const:`tabcheck` | -t or -tt |
+------------------------------+------------------------------------------+
| :const:`verbose` | -v | | :const:`verbose` | -v |
+------------------------------+------------------------------------------+ +------------------------------+------------------------------------------+
| :const:`unicode` | -U | | :const:`unicode` | -U |
......
...@@ -222,13 +222,6 @@ Miscellaneous options ...@@ -222,13 +222,6 @@ Miscellaneous options
manipulations of :data:`sys.path` that it entails. manipulations of :data:`sys.path` that it entails.
.. cmdoption:: -t
Issue a warning when a source file mixes tabs and spaces for indentation in a
way that makes it depend on the worth of a tab expressed in spaces. Issue an
error when the option is given twice (:option:`-tt`).
.. cmdoption:: -u .. cmdoption:: -u
Force stdin, stdout and stderr to be totally unbuffered. On systems where it Force stdin, stdout and stderr to be totally unbuffered. On systems where it
......
...@@ -14,7 +14,6 @@ PyAPI_DATA(int) Py_NoSiteFlag; ...@@ -14,7 +14,6 @@ PyAPI_DATA(int) Py_NoSiteFlag;
PyAPI_DATA(int) Py_BytesWarningFlag; PyAPI_DATA(int) Py_BytesWarningFlag;
PyAPI_DATA(int) Py_UseClassExceptionsFlag; PyAPI_DATA(int) Py_UseClassExceptionsFlag;
PyAPI_DATA(int) Py_FrozenFlag; PyAPI_DATA(int) Py_FrozenFlag;
PyAPI_DATA(int) Py_TabcheckFlag;
PyAPI_DATA(int) Py_IgnoreEnvironmentFlag; PyAPI_DATA(int) Py_IgnoreEnvironmentFlag;
PyAPI_DATA(int) Py_DivisionWarningFlag; PyAPI_DATA(int) Py_DivisionWarningFlag;
PyAPI_DATA(int) Py_DontWriteBytecodeFlag; PyAPI_DATA(int) Py_DontWriteBytecodeFlag;
......
...@@ -80,10 +80,10 @@ class ExceptionTests(unittest.TestCase): ...@@ -80,10 +80,10 @@ class ExceptionTests(unittest.TestCase):
self.raise_catch(IndentationError, "IndentationError") self.raise_catch(IndentationError, "IndentationError")
self.raise_catch(TabError, "TabError") self.raise_catch(TabError, "TabError")
# can only be tested under -tt, and is the only test for -tt try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n",
#try: compile("try:\n\t1/0\n \t1/0\nfinally:\n pass\n", '<string>', 'exec') '<string>', 'exec')
#except TabError: pass except TabError: pass
#else: self.fail("TabError not raised") else: self.fail("TabError not raised")
self.raise_catch(SystemError, "SystemError") self.raise_catch(SystemError, "SystemError")
......
...@@ -6,22 +6,22 @@ ...@@ -6,22 +6,22 @@
PYVER="@PYVER@" PYVER="@PYVER@"
FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@" FWK="/Library/Frameworks/Python.framework/Versions/@PYVER@"
"${FWK}/bin/python" -Wi -tt \ "${FWK}/bin/python" -Wi \
"${FWK}/lib/python${PYVER}/compileall.py" \ "${FWK}/lib/python${PYVER}/compileall.py" \
-x badsyntax -x site-packages \ -x badsyntax -x site-packages \
"${FWK}/lib/python${PYVER}" "${FWK}/lib/python${PYVER}"
"${FWK}/bin/python" -Wi -tt -O \ "${FWK}/bin/python" -Wi -O \
"${FWK}/lib/python${PYVER}/compileall.py" \ "${FWK}/lib/python${PYVER}/compileall.py" \
-x badsyntax -x site-packages \ -x badsyntax -x site-packages \
"${FWK}/lib/python${PYVER}" "${FWK}/lib/python${PYVER}"
"${FWK}/bin/python" -Wi -tt \ "${FWK}/bin/python" -Wi \
"${FWK}/lib/python${PYVER}/compileall.py" \ "${FWK}/lib/python${PYVER}/compileall.py" \
-x badsyntax -x site-packages \ -x badsyntax -x site-packages \
"${FWK}/Mac/Tools" "${FWK}/Mac/Tools"
"${FWK}/bin/python" -Wi -tt -O \ "${FWK}/bin/python" -Wi -O \
"${FWK}/lib/python${PYVER}/compileall.py" \ "${FWK}/lib/python${PYVER}/compileall.py" \
-x badsyntax -x site-packages \ -x badsyntax -x site-packages \
"${FWK}/Mac/Tools" "${FWK}/Mac/Tools"
......
...@@ -226,8 +226,8 @@ installmacsubtree: ...@@ -226,8 +226,8 @@ installmacsubtree:
$(RUNSHARED) $(BUILDPYTHON) $(CACHERSRC) -v $(DESTDIR)$(MACLIBDEST) $(DESTDIR)$(MACTOOLSDEST) $(RUNSHARED) $(BUILDPYTHON) $(CACHERSRC) -v $(DESTDIR)$(MACLIBDEST) $(DESTDIR)$(MACTOOLSDEST)
$(RUNSHARED) $(BUILDPYTHON) -Wi -tt $(compileall) -d $(MACTOOLSDEST) -x badsyntax $(DESTDIR)$(MACTOOLSDEST) $(RUNSHARED) $(BUILDPYTHON) -Wi $(compileall) -d $(MACTOOLSDEST) -x badsyntax $(DESTDIR)$(MACTOOLSDEST)
$(RUNSHARED) $(BUILDPYTHON) -O -Wi -tt $(compileall) -d $(MACTOOLSDEST) -x badsyntax $(DESTDIR)$(MACTOOLSDEST) $(RUNSHARED) $(BUILDPYTHON) -O -Wi $(compileall) -d $(MACTOOLSDEST) -x badsyntax $(DESTDIR)$(MACTOOLSDEST)
$(INSTALLED_PYTHONAPP): install_Python $(INSTALLED_PYTHONAPP): install_Python
......
...@@ -664,7 +664,7 @@ $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS) ...@@ -664,7 +664,7 @@ $(LIBRARY_OBJS) $(MODOBJS) Modules/python.o: $(PYTHON_HEADERS)
TESTOPTS= -l $(EXTRATESTOPTS) TESTOPTS= -l $(EXTRATESTOPTS)
TESTPROG= $(srcdir)/Lib/test/regrtest.py TESTPROG= $(srcdir)/Lib/test/regrtest.py
TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -E -tt -bb TESTPYTHON= $(RUNSHARED) ./$(BUILDPYTHON) -E -bb
test: all platform test: all platform
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS)
...@@ -687,7 +687,7 @@ testuniversal: all platform ...@@ -687,7 +687,7 @@ testuniversal: all platform
-find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f -find $(srcdir)/Lib -name '*.py[co]' -print | xargs rm -f
-$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall -$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
$(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall $(TESTPYTHON) $(TESTPROG) $(TESTOPTS) -uall
$(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E -tt $(TESTPROG) $(TESTOPTS) -uall $(RUNSHARED) /usr/libexec/oah/translate ./$(BUILDPYTHON) -E $(TESTPROG) $(TESTOPTS) -uall
# Like testall, but with a single pass only # Like testall, but with a single pass only
...@@ -872,23 +872,23 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR) ...@@ -872,23 +872,23 @@ libinstall: build_all $(srcdir)/Lib/$(PLATDIR)
done done
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \ ./$(BUILDPYTHON) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST) -f \ -d $(LIBDEST) -f \
-x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST) -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \ ./$(BUILDPYTHON) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST) -f \ -d $(LIBDEST) -f \
-x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST) -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \ ./$(BUILDPYTHON) -Wi $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST)/site-packages -f \ -d $(LIBDEST)/site-packages -f \
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \ ./$(BUILDPYTHON) -Wi -O $(DESTDIR)$(LIBDEST)/compileall.py \
-d $(LIBDEST)/site-packages -f \ -d $(LIBDEST)/site-packages -f \
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \ -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
./$(BUILDPYTHON) -Wi -t -c "import lib2to3.pygram" ./$(BUILDPYTHON) -Wi -c "import lib2to3.pygram"
# Create the PLATDIR source directory, if one wasn't distributed.. # Create the PLATDIR source directory, if one wasn't distributed..
$(srcdir)/Lib/$(PLATDIR): $(srcdir)/Lib/$(PLATDIR):
......
...@@ -12,6 +12,8 @@ What's new in Python 3.0b1? ...@@ -12,6 +12,8 @@ What's new in Python 3.0b1?
Core and Builtins Core and Builtins
----------------- -----------------
- Removed the already-defunct ``-t`` option.
- Issue #2957: Corrected a ValueError "recursion limit exceeded", when - Issue #2957: Corrected a ValueError "recursion limit exceeded", when
unmarshalling many code objects, which happens when importing a unmarshalling many code objects, which happens when importing a
large .pyc file (~1000 functions). large .pyc file (~1000 functions).
......
...@@ -59,7 +59,7 @@ RSYNC_OPTS="-aC -e ssh" ...@@ -59,7 +59,7 @@ RSYNC_OPTS="-aC -e ssh"
PYTHON=$INSTALL_DIR/bin/python PYTHON=$INSTALL_DIR/bin/python
# Python options and regression test program that should always be run. # Python options and regression test program that should always be run.
REGRTEST_ARGS="-E -tt $INSTALL_DIR/lib/python3.0/test/regrtest.py" REGRTEST_ARGS="-E $INSTALL_DIR/lib/python3.0/test/regrtest.py"
REFLOG="build/reflog.txt.out" REFLOG="build/reflog.txt.out"
# These tests are not stable and falsely report leaks sometimes. # These tests are not stable and falsely report leaks sometimes.
......
...@@ -46,7 +46,6 @@ Option Effect ...@@ -46,7 +46,6 @@ Option Effect
-OO remove doc-strings in addition to the -O optimizations -OO remove doc-strings in addition to the -O optimizations
-Q arg division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew -Q arg division options: -Qold (default), -Qwarn, -Qwarnall, -Qnew
-S Don't perform 'import site' on initialization -S Don't perform 'import site' on initialization
-t Issue warnings about inconsistent tab usage (-tt: issue errors)
-u Unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x). -u Unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x).
-v Verbose (trace import statements) (also PYTHONVERBOSE=x) -v Verbose (trace import statements) (also PYTHONVERBOSE=x)
-W arg : warning control (arg is action:message:category:module:lineno) -W arg : warning control (arg is action:message:category:module:lineno)
......
...@@ -35,9 +35,6 @@ python \- an interpreted, interactive, object-oriented programming language ...@@ -35,9 +35,6 @@ python \- an interpreted, interactive, object-oriented programming language
.B \-S .B \-S
] ]
[ [
.B \-t
]
[
.B \-u .B \-u
] ]
.br .br
...@@ -144,11 +141,6 @@ and the site-dependent manipulations of ...@@ -144,11 +141,6 @@ and the site-dependent manipulations of
.I sys.path .I sys.path
that it entails. that it entails.
.TP .TP
.B \-t
Issue a warning when a source file mixes tabs and spaces for
indentation in a way that makes it depend on the worth of a tab
expressed in spaces. Issue an error when the option is given twice.
.TP
.B \-u .B \-u
Force stdin, stdout and stderr to be totally unbuffered. On systems Force stdin, stdout and stderr to be totally unbuffered. On systems
where it matters, also put stdin, stdout and stderr in binary mode. where it matters, also put stdin, stdout and stderr in binary mode.
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# #
# cd python/dist/src # cd python/dist/src
# valgrind --tool=memcheck --suppressions=Misc/valgrind-python.supp \ # valgrind --tool=memcheck --suppressions=Misc/valgrind-python.supp \
# ./python -E -tt ./Lib/test/regrtest.py -u bsddb,network # ./python -E ./Lib/test/regrtest.py -u bsddb,network
# #
# You must edit Objects/obmalloc.c and uncomment Py_USING_MEMORY_DEBUGGER # You must edit Objects/obmalloc.c and uncomment Py_USING_MEMORY_DEBUGGER
# to use the preferred suppressions with Py_ADDRESS_IN_RANGE. # to use the preferred suppressions with Py_ADDRESS_IN_RANGE.
......
...@@ -72,7 +72,6 @@ static char *usage_2 = "\ ...@@ -72,7 +72,6 @@ static char *usage_2 = "\
-OO : remove doc-strings in addition to the -O optimizations\n\ -OO : remove doc-strings in addition to the -O optimizations\n\
-s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\ -s : don't add user site directory to sys.path; also PYTHONNOUSERSITE\n\
-S : don't imply 'import site' on initialization\n\ -S : don't imply 'import site' on initialization\n\
-t : issue warnings about inconsistent tab usage (-tt: issue errors)\n\
"; ";
static char *usage_3 = "\ static char *usage_3 = "\
-u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x\n\ -u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x\n\
...@@ -370,7 +369,7 @@ Py_Main(int argc, wchar_t **argv) ...@@ -370,7 +369,7 @@ Py_Main(int argc, wchar_t **argv)
break; break;
case 't': case 't':
Py_TabcheckFlag++; /* ignored for backwards compatibility */
break; break;
case 'u': case 'u':
......
...@@ -31,11 +31,11 @@ ...@@ -31,11 +31,11 @@
@if "%_qmode%"=="yes" goto Qmode @if "%_qmode%"=="yes" goto Qmode
@echo Deleting .pyc/.pyo files ... @echo Deleting .pyc/.pyo files ...
@%_exe% rmpyc.py @%_exe% rmpyc.py
%_exe% %_dashO% -E -tt ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 %_exe% %_dashO% -E ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
@echo About to run again without deleting .pyc/.pyo first: @echo About to run again without deleting .pyc/.pyo first:
@pause @pause
:Qmode :Qmode
%_exe% %_dashO% -E -tt ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 %_exe% %_dashO% -E ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
@set _exe= @set _exe=
@set _qmode= @set _qmode=
@set _dashO= @set _dashO=
...@@ -34,7 +34,7 @@ if "%1"=="-O" (set dashO=-O) & shift & goto CheckOpts ...@@ -34,7 +34,7 @@ if "%1"=="-O" (set dashO=-O) & shift & goto CheckOpts
if "%1"=="-q" (set qmode=yes) & shift & goto CheckOpts if "%1"=="-q" (set qmode=yes) & shift & goto CheckOpts
if "%1"=="-d" (set exe=python_d) & shift & goto CheckOpts if "%1"=="-d" (set exe=python_d) & shift & goto CheckOpts
set cmd=%exe% %dashO% -E -tt ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 set cmd=%exe% %dashO% -E ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
if defined qmode goto Qmode if defined qmode goto Qmode
echo Deleting .pyc/.pyo files ... echo Deleting .pyc/.pyo files ...
......
...@@ -34,7 +34,7 @@ if "%1"=="-O" (set dashO=-O) & shift & goto CheckOpts ...@@ -34,7 +34,7 @@ if "%1"=="-O" (set dashO=-O) & shift & goto CheckOpts
if "%1"=="-q" (set qmode=yes) & shift & goto CheckOpts if "%1"=="-q" (set qmode=yes) & shift & goto CheckOpts
if "%1"=="-d" (set exe=python_d) & shift & goto CheckOpts if "%1"=="-d" (set exe=python_d) & shift & goto CheckOpts
set cmd=%exe% %dashO% -E -tt ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 set cmd=%exe% %dashO% -E ../../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
if defined qmode goto Qmode if defined qmode goto Qmode
echo Deleting .pyc/.pyo files ... echo Deleting .pyc/.pyo files ...
......
...@@ -666,7 +666,7 @@ _ssl$(MODULE.EXT): $(OUT)_ssl$O $(OUT)_ssl_m.def $(PYTHON.IMPLIB) ...@@ -666,7 +666,7 @@ _ssl$(MODULE.EXT): $(OUT)_ssl$O $(OUT)_ssl_m.def $(PYTHON.IMPLIB)
# the test target # the test target
test: test:
-find ../../Lib -name "*.py[co]" -exec rm {} ";" -find ../../Lib -name "*.py[co]" -exec rm {} ";"
-./python -E -tt ../../lib/test/regrtest.py -l -u "network" -./python -E ../../lib/test/regrtest.py -l -u "network"
./python -E -tt ../../lib/test/regrtest.py -l -u "network" ./python -E ../../lib/test/regrtest.py -l -u "network"
-include $(OUTBASE)python.dep -include $(OUTBASE)python.dep
...@@ -49,7 +49,6 @@ EXPORTS ...@@ -49,7 +49,6 @@ EXPORTS
"PyParser_Delete" "PyParser_Delete"
; From python26_s.lib(parsetok) ; From python26_s.lib(parsetok)
"Py_TabcheckFlag"
"PyParser_ParseString" "PyParser_ParseString"
"PyParser_ParseStringFlagsFilename" "PyParser_ParseStringFlagsFilename"
"PyParser_ParseFile" "PyParser_ParseFile"
......
...@@ -61,7 +61,6 @@ EXPORTS ...@@ -61,7 +61,6 @@ EXPORTS
Py_InteractiveFlag Py_InteractiveFlag
Py_NoSiteFlag Py_NoSiteFlag
Py_OptimizeFlag Py_OptimizeFlag
Py_TabcheckFlag
Py_UseClassExceptionsFlag Py_UseClassExceptionsFlag
Py_VerboseFlag Py_VerboseFlag
_PyImport_Filetab _PyImport_Filetab
......
...@@ -40,7 +40,7 @@ if "%1"=="-x64" (set prefix=amd64) & (set tcltk=tcltk64) & shift & goto CheckOpt ...@@ -40,7 +40,7 @@ if "%1"=="-x64" (set prefix=amd64) & (set tcltk=tcltk64) & shift & goto CheckOpt
PATH %PATH%;..\..\%tcltk%\bin PATH %PATH%;..\..\%tcltk%\bin
set exe=%prefix%\python%suffix% set exe=%prefix%\python%suffix%
set cmd=%exe% %dashO% -E -tt ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9 set cmd=%exe% %dashO% -E ../lib/test/regrtest.py %1 %2 %3 %4 %5 %6 %7 %8 %9
if defined qmode goto Qmode if defined qmode goto Qmode
echo Deleting .pyc/.pyo files ... echo Deleting .pyc/.pyo files ...
......
...@@ -10,8 +10,6 @@ ...@@ -10,8 +10,6 @@
#include "errcode.h" #include "errcode.h"
#include "graminit.h" #include "graminit.h"
int Py_TabcheckFlag;
/* Forward */ /* Forward */
static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *); static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *);
...@@ -57,9 +55,6 @@ PyParser_ParseStringFlagsFilenameEx(const char *s, const char *filename, ...@@ -57,9 +55,6 @@ PyParser_ParseStringFlagsFilenameEx(const char *s, const char *filename,
} }
tok->filename = filename ? filename : "<string>"; tok->filename = filename ? filename : "<string>";
if (Py_TabcheckFlag >= 3)
tok->alterror = 0;
return parsetok(tok, g, start, err_ret, flags); return parsetok(tok, g, start, err_ret, flags);
} }
...@@ -97,9 +92,6 @@ PyParser_ParseFileFlagsEx(FILE *fp, const char *filename, ...@@ -97,9 +92,6 @@ PyParser_ParseFileFlagsEx(FILE *fp, const char *filename,
return NULL; return NULL;
} }
tok->filename = filename; tok->filename = filename;
if (Py_TabcheckFlag >= 3)
tok->alterror = 0;
return parsetok(tok, g, start, err_ret, flags); return parsetok(tok, g, start, err_ret, flags);
} }
......
...@@ -1100,7 +1100,6 @@ static PyStructSequence_Field flags_fields[] = { ...@@ -1100,7 +1100,6 @@ static PyStructSequence_Field flags_fields[] = {
{"no_user_site", "-s"}, {"no_user_site", "-s"},
{"no_site", "-S"}, {"no_site", "-S"},
{"ignore_environment", "-E"}, {"ignore_environment", "-E"},
{"tabcheck", "-t or -tt"},
{"verbose", "-v"}, {"verbose", "-v"},
#ifdef RISCOS #ifdef RISCOS
{"riscos_wimp", "???"}, {"riscos_wimp", "???"},
...@@ -1116,9 +1115,9 @@ static PyStructSequence_Desc flags_desc = { ...@@ -1116,9 +1115,9 @@ static PyStructSequence_Desc flags_desc = {
flags__doc__, /* doc */ flags__doc__, /* doc */
flags_fields, /* fields */ flags_fields, /* fields */
#ifdef RISCOS #ifdef RISCOS
12
#else
11 11
#else
10
#endif #endif
}; };
...@@ -1144,7 +1143,6 @@ make_flags(void) ...@@ -1144,7 +1143,6 @@ make_flags(void)
SetFlag(Py_NoUserSiteDirectory); SetFlag(Py_NoUserSiteDirectory);
SetFlag(Py_NoSiteFlag); SetFlag(Py_NoSiteFlag);
SetFlag(Py_IgnoreEnvironmentFlag); SetFlag(Py_IgnoreEnvironmentFlag);
SetFlag(Py_TabcheckFlag);
SetFlag(Py_VerboseFlag); SetFlag(Py_VerboseFlag);
#ifdef RISCOS #ifdef RISCOS
SetFlag(Py_RISCOSWimpFlag); SetFlag(Py_RISCOSWimpFlag);
......
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