Kaydet (Commit) 89ce4544 authored tarafından Guido van Rossum's avatar Guido van Rossum

Make sure that -t and -tt also work on strings passed to compile().

üst b55f9ff6
......@@ -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);
}
......
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