commit | e36199b49df77c96bad687c6681d8e54c5053b84 | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Nov 12 23:39:44 2009 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Nov 12 23:39:44 2009 +0000 |
tree | 81b9aaa74f92b9de459ede5dc6ed2ca4ec508998 | |
parent | c4cd6d3765d054ac1b23f0f9765a2eaf3f1e7be7 [diff] [blame] |
fix several compile() issues by translating newlines in the tokenizer
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 @@ 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; }