Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 768c16ce0273a74fa846cc388753280b17b02cfc authored by Serhiy Storchaka on 09 January 2014, 16:36:09 UTC, committed by Serhiy Storchaka on 09 January 2014, 16:36:09 UTC
* 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.
1 parent 21e7d4c
Tip revision: 768c16ce0273a74fa846cc388753280b17b02cfc authored by Serhiy Storchaka on 09 January 2014, 16:36:09 UTC
Issue #18960: Fix bugs with Python source code encoding in the second line.
Issue #18960: Fix bugs with Python source code encoding in the second line.
Tip revision: 768c16c
File | Mode | Size |
---|---|---|
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 584 bytes |
.gitignore | -rw-r--r-- | 891 bytes |
.hgeol | -rw-r--r-- | 755 bytes |
.hgignore | -rw-r--r-- | 1.2 KB |
.hgtags | -rw-r--r-- | 5.7 KB |
.hgtouch | -rw-r--r-- | 1.2 KB |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 48.5 KB |
README | -rw-r--r-- | 6.6 KB |
config.guess | -rwxr-xr-x | 44.2 KB |
config.sub | -rwxr-xr-x | 34.7 KB |
configure | -rwxr-xr-x | 431.4 KB |
configure.ac | -rw-r--r-- | 133.3 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 39.5 KB |
setup.py | -rw-r--r-- | 94.0 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...