cpython/Parser
Serhiy Storchaka 768c16ce02 Issue #18960: Fix bugs with Python source code encoding in the second line.
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.

* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.

* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.

* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.

* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.

* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
2014-01-09 18:36:09 +02:00
..
acceler.c
asdl.py construct fields in the right order (closes #15517) 2012-07-31 21:41:56 -07:00
asdl_c.py #18803: fix more typos. Patch by Févry Thibault. 2013-08-26 01:32:56 +03:00
bitset.c
firstsets.c
grammar.c
grammar1.c Some compilers complain about 'control reaches end of non-void function' 2013-07-22 16:34:13 +02:00
listnode.c
metagrammar.c
myreadline.c Issue #18368: PyOS_StdioReadline() no longer leaks memory when realloc() fails. 2013-08-06 15:59:16 +02:00
node.c Issue #15144: Fix possible integer overflow when handling pointers as integer values, by using Py_uintptr_t instead of size_t. 2012-09-20 20:56:47 +02:00
parser.c
parser.h
parsetok.c Remove unused variables in parsetok(). 2012-08-11 11:16:18 +02:00
parsetok_pgen.c
pgen.c Silence warning about set but unused variable inside compile_atom() in non-debug builds 2013-07-31 23:47:56 +02:00
pgenmain.c
printgrammar.c
Python.asdl Issue #16546: make ast.YieldFrom argument mandatory. 2012-11-25 14:36:26 +00:00
spark.py
tokenizer.c Issue #18960: Fix bugs with Python source code encoding in the second line. 2014-01-09 18:36:09 +02:00
tokenizer.h
tokenizer_pgen.c