diff options
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/parsetok.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 6453b6a..5b0d990 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -68,6 +68,13 @@ PyParser_ParseString(s, g, start, err_ret) return NULL; } + if (Py_TabcheckFlag || Py_VerboseFlag) { + tok->filename = "<string>"; + tok->altwarning = (tok->filename != NULL); + if (Py_TabcheckFlag >= 2) + tok->alterror++; + } + return parsetok(tok, g, start, err_ret); } |