• Serhiy Storchaka's avatar
    Issue #18960: Fix bugs with Python source code encoding in the second line. · 7282ff6d
    Serhiy Storchaka yazdı
    * 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.
    7282ff6d
Adı
Son kayıt (commit)
Son güncelleme
..
buildbot Loading commit data...
ccbench Loading commit data...
clinic Loading commit data...
demo Loading commit data...
freeze Loading commit data...
gdb Loading commit data...
hg Loading commit data...
i18n Loading commit data...
importbench Loading commit data...
iobench Loading commit data...
msi Loading commit data...
parser Loading commit data...
pybench Loading commit data...
pynche Loading commit data...
scripts Loading commit data...
ssl Loading commit data...
stringbench Loading commit data...
test2to3 Loading commit data...
unicode Loading commit data...
unittestgui Loading commit data...
README Loading commit data...