summaryrefslogtreecommitdiffstats
path: root/Parser/parsetok.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-11-12 23:39:44 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-11-12 23:39:44 (GMT)
commite36199b49df77c96bad687c6681d8e54c5053b84 (patch)
tree81b9aaa74f92b9de459ede5dc6ed2ca4ec508998 /Parser/parsetok.c
parentc4cd6d3765d054ac1b23f0f9765a2eaf3f1e7be7 (diff)
downloadcpython-e36199b49df77c96bad687c6681d8e54c5053b84.zip
cpython-e36199b49df77c96bad687c6681d8e54c5053b84.tar.gz
cpython-e36199b49df77c96bad687c6681d8e54c5053b84.tar.bz2
fix several compile() issues by translating newlines in the tokenizer
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r--Parser/parsetok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 3994add..7f2fb36 100644
--- a/Parser/parsetok.c
+++ b/Parser/parsetok.c
@@ -51,7 +51,7 @@ PyParser_ParseStringFlagsFilenameEx(const char *s, const char *filename,
initerr(err_ret, filename);
- if ((tok = PyTokenizer_FromString(s)) == NULL) {
+ if ((tok = PyTokenizer_FromString(s, start == file_input)) == NULL) {
err_ret->error = PyErr_Occurred() ? E_DECODE : E_NOMEM;
return NULL;
}