]> granicus.if.org Git - python/commit
Issue #22221: Backported fixes from Python 3 (issue #18960).
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 5 Sep 2014 07:22:05 +0000 (10:22 +0300)
committerSerhiy Storchaka <storchaka@gmail.com>
Fri, 5 Sep 2014 07:22:05 +0000 (10:22 +0300)
commit3eb554fc828c812a31c1a3cd9f619eacbb708010
tree8f949a481d0170358d6d06ea577d0ce766383d15
parent423f1282b3476e2e58b6631632f2521b80f556c7
Issue #22221: Backported fixes from Python 3 (issue #18960).

* Now the source encoding declaration on the second line isn't effective if
  the first line contains anything except a comment.  This affects compile(),
  eval() and exec() too.

* 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.
Lib/idlelib/IOBinding.py
Lib/lib2to3/pgen2/tokenize.py
Lib/test/test_compile.py
Misc/NEWS
Parser/tokenizer.c
Tools/scripts/findnocoding.py