diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-20 23:36:29 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-03-20 23:36:29 +0200 |
commit | 8fb8b5a67a5940149732f44c6e54d354347a225f (patch) | |
tree | c4122bddccad1defefd798270f2525a404f563e9 /Parser | |
parent | b3003fda3580227bde6a165eaec7fd5c73b120c0 (diff) | |
download | cpython-8fb8b5a67a5940149732f44c6e54d354347a225f.tar.gz |
Issue #26581: Use the first coding cookie on a line, not the last one.
Diffstat (limited to 'Parser')
-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 1cdbae20dc..50ce2e88c9 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; } } } |