diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-20 21:47:48 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-20 21:47:48 (GMT) |
commit | a051bf3afbb30b7ddb7bd4c7ba03acc63288d6f2 (patch) | |
tree | 8d2fe8a1e6edbbae0ae6b0dd193a38d4033ef9fd /Parser/tokenizer.c | |
parent | fc6990d3824340dd86f085250aac37267d57194f (diff) | |
parent | e431d3c9aadb52dd1eea4d1e606e94f1c8471459 (diff) | |
download | cpython-a051bf3afbb30b7ddb7bd4c7ba03acc63288d6f2.zip cpython-a051bf3afbb30b7ddb7bd4c7ba03acc63288d6f2.tar.gz cpython-a051bf3afbb30b7ddb7bd4c7ba03acc63288d6f2.tar.bz2 |
Issue #26581: Use the first coding cookie on a line, not the last one.
Diffstat (limited to 'Parser/tokenizer.c')
-rw-r--r-- | Parser/tokenizer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Parser/tokenizer.c b/Parser/tokenizer.c index be7cf49..c653121 100644 --- a/Parser/tokenizer.c +++ b/Parser/tokenizer.c @@ -275,6 +275,7 @@ get_coding_spec(const char *s, char **spec, Py_ssize_t size, struct tok_state *t return 0; } *spec = r; + break; } } } |