mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Revert r63934 -- it was mixing two patches.
This commit is contained in:
parent
f954c4b9fb
commit
a26f8ca668
37 changed files with 1028 additions and 1188 deletions
|
@ -10,6 +10,8 @@
|
|||
#include "errcode.h"
|
||||
#include "graminit.h"
|
||||
|
||||
int Py_TabcheckFlag;
|
||||
|
||||
|
||||
/* Forward */
|
||||
static node *parsetok(struct tok_state *, grammar *, int, perrdetail *, int *);
|
||||
|
@ -55,6 +57,9 @@ 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);
|
||||
}
|
||||
|
||||
|
@ -92,6 +97,9 @@ 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