mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Remove meaning of -ttt, but still accept -t option on cmdline for compatibility.
This commit is contained in:
parent
e5d68aceb5
commit
f954c4b9fb
37 changed files with 1184 additions and 1024 deletions
|
@ -10,8 +10,6 @@
|
|||
#include "errcode.h"
|
||||
#include "graminit.h"
|
||||
|
||||
int Py_TabcheckFlag;
|
||||
|
||||
|
||||
/* Forward */
|
||||
static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *);
|
||||
|
@ -57,9 +55,6 @@ PyParser_ParseStringFlagsFilenameEx(const char *s, const char *filename,
|
|||
}
|
||||
|
||||
tok->filename = filename ? filename : "<string>";
|
||||
if (Py_TabcheckFlag >= 3)
|
||||
tok->alterror = 0;
|
||||
|
||||
return parsetok(tok, g, start, err_ret, flags);
|
||||
}
|
||||
|
||||
|
@ -97,9 +92,6 @@ PyParser_ParseFileFlagsEx(FILE *fp, const char *filename,
|
|||
return NULL;
|
||||
}
|
||||
tok->filename = filename;
|
||||
if (Py_TabcheckFlag >= 3)
|
||||
tok->alterror = 0;
|
||||
|
||||
return parsetok(tok, g, start, err_ret, flags);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue