Commit Graph

7 Commits

Author SHA1 Message Date
Serhiy Storchaka 3eb554fc82 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.
2014-09-05 10:22:05 +03:00
Serhiy Storchaka e4818f6937 Remove the use of non-existing re.ASCII.
(fixes a regression in 3d46ef0c62c5, issue #18873)
2013-09-17 10:09:08 +03:00
Serhiy Storchaka e787bce79c Issue #18873: IDLE, 2to3, and the findnocoding.py script now detect Python
source code encoding only in comment lines.
2013-09-17 00:00:46 +03:00
Benjamin Peterson adc93b9499 don't use a catch-all 2008-10-25 23:27:07 +00:00
Georg Brandl 0750b1f220 Fix name. 2006-10-06 12:46:08 +00:00
Tim Peters 9e34c04732 Whitespace normalization (via reindent.py). 2005-08-26 15:20:46 +00:00
Georg Brandl 568973181a Patch [ 784089 ] A program to scan python files and list those require coding 2005-08-24 18:32:30 +00:00