]> granicus.if.org Git - python/log
python
11 years agoMerged documentation update from 3.3.
Vinay Sajip [Wed, 15 Jan 2014 13:29:24 +0000 (13:29 +0000)]
Merged documentation update from 3.3.

11 years agoClarified documentation note on module-level convenience functions.
Vinay Sajip [Wed, 15 Jan 2014 13:28:39 +0000 (13:28 +0000)]
Clarified documentation note on module-level convenience functions.

11 years agoIssue #14455: Fix some issues with plistlib
Ronald Oussoren [Wed, 15 Jan 2014 10:32:35 +0000 (11:32 +0100)]
Issue #14455: Fix some issues with plistlib

* Negative integer support in binary plists was broken

* Better exception for invalid data

* Fix the versionadded/versionchanged markup in the documentation

* Add the interface cleanup to what's new for 3.4

11 years agoIssue #20268: Argument Clinic now supports cloning the parameters
Larry Hastings [Wed, 15 Jan 2014 06:22:41 +0000 (22:22 -0800)]
Issue #20268: Argument Clinic now supports cloning the parameters
and return converter from existing functions.

11 years agoFix minor bug in dict.__contains__ docstring.
Meador Inge [Tue, 14 Jan 2014 22:48:31 +0000 (16:48 -0600)]
Fix minor bug in dict.__contains__ docstring.

When dict got clinicized in 8fde1a2c94dc for Issue #16612 an erroneous
trailing quote was left in the clinic docstring summary line.

11 years agoIssue #20255: Update the about and bugs pages.
Zachary Ware [Tue, 14 Jan 2014 22:03:51 +0000 (16:03 -0600)]
Issue #20255: Update the about and bugs pages.

11 years agoIssue #20255: Update the about and bugs pages.
Zachary Ware [Tue, 14 Jan 2014 22:03:11 +0000 (16:03 -0600)]
Issue #20255: Update the about and bugs pages.

11 years agoReplace assert with a proper error
Antoine Pitrou [Tue, 14 Jan 2014 20:02:43 +0000 (21:02 +0100)]
Replace assert with a proper error

11 years agoClinic-ize the crypt module. Derby!
Antoine Pitrou [Tue, 14 Jan 2014 20:00:27 +0000 (21:00 +0100)]
Clinic-ize the crypt module. Derby!

11 years agoimprove an error message in clinic
Antoine Pitrou [Tue, 14 Jan 2014 19:52:01 +0000 (20:52 +0100)]
improve an error message in clinic

11 years agoCloses #20253: Merge typo fix
Zachary Ware [Tue, 14 Jan 2014 15:10:33 +0000 (09:10 -0600)]
Closes #20253: Merge typo fix

11 years agoIssue #20253: Fixed a typo in the ipaddress docs that advertised an
Zachary Ware [Tue, 14 Jan 2014 15:09:48 +0000 (09:09 -0600)]
Issue #20253: Fixed a typo in the ipaddress docs that advertised an
illegal attribute name.  Found by INADA Naoki.

11 years agoMerge typo fix.
Zachary Ware [Tue, 14 Jan 2014 14:45:38 +0000 (08:45 -0600)]
Merge typo fix.

11 years agoFix typo. Found by David Pesta on docs@.
Zachary Ware [Tue, 14 Jan 2014 14:44:49 +0000 (08:44 -0600)]
Fix typo.  Found by David Pesta on docs@.

11 years agoMerge typo fix.
Zachary Ware [Tue, 14 Jan 2014 14:41:41 +0000 (08:41 -0600)]
Merge typo fix.

11 years agoFix typo. Found by David Pesta on docs@.
Zachary Ware [Tue, 14 Jan 2014 14:40:53 +0000 (08:40 -0600)]
Fix typo.  Found by David Pesta on docs@.

11 years agoFix typo in comment.
Eric V. Smith [Tue, 14 Jan 2014 13:15:03 +0000 (08:15 -0500)]
Fix typo in comment.

11 years agomerge
Georg Brandl [Tue, 14 Jan 2014 11:27:44 +0000 (12:27 +0100)]
merge

11 years agomerge with 3.3
Georg Brandl [Tue, 14 Jan 2014 11:27:21 +0000 (12:27 +0100)]
merge with 3.3

11 years agoCloses #20258: Sphinx toolchain: move back to Jinja2 2.3.1 with support for Py2.5.
Georg Brandl [Tue, 14 Jan 2014 11:00:45 +0000 (12:00 +0100)]
Closes #20258: Sphinx toolchain: move back to Jinja2 2.3.1 with support for Py2.5.

11 years agomerge 3.3
Benjamin Peterson [Tue, 14 Jan 2014 05:29:03 +0000 (00:29 -0500)]
merge 3.3

11 years agoadd test for #20251
Benjamin Peterson [Tue, 14 Jan 2014 05:27:42 +0000 (00:27 -0500)]
add test for #20251

11 years agomerge 3.3 (#20251)
Benjamin Peterson [Tue, 14 Jan 2014 05:22:50 +0000 (00:22 -0500)]
merge 3.3 (#20251)

11 years agoremove overly strict assertion (closes #20251)
Benjamin Peterson [Tue, 14 Jan 2014 05:21:49 +0000 (00:21 -0500)]
remove overly strict assertion (closes #20251)

11 years agomerge 3.3 (#20250)
Benjamin Peterson [Tue, 14 Jan 2014 04:56:30 +0000 (23:56 -0500)]
merge 3.3 (#20250)

11 years agocorrect defaultdict signature in docstring (closes #20250)
Benjamin Peterson [Tue, 14 Jan 2014 04:56:05 +0000 (23:56 -0500)]
correct defaultdict signature in docstring (closes #20250)

Patch from Andrew Barnert.

11 years agomerge 3.3 (#20246)
Benjamin Peterson [Tue, 14 Jan 2014 04:14:58 +0000 (23:14 -0500)]
merge 3.3 (#20246)

11 years agomerge 3.3 (#20246)
Benjamin Peterson [Tue, 14 Jan 2014 04:14:42 +0000 (23:14 -0500)]
merge 3.3 (#20246)

11 years agomerge 3.2 (#20246)
Benjamin Peterson [Tue, 14 Jan 2014 04:12:55 +0000 (23:12 -0500)]
merge 3.2 (#20246)

11 years agocomplain when nbytes > buflen to fix possible buffer overflow (closes #20246)
Benjamin Peterson [Tue, 14 Jan 2014 03:59:38 +0000 (22:59 -0500)]
complain when nbytes > buflen to fix possible buffer overflow (closes #20246)

11 years agoMerge typo fix.
Zachary Ware [Tue, 14 Jan 2014 02:39:21 +0000 (20:39 -0600)]
Merge typo fix.

11 years agoFix typo.
Zachary Ware [Tue, 14 Jan 2014 02:38:57 +0000 (20:38 -0600)]
Fix typo.

11 years agoCorrect a typo. Found by Lauri Hakko on docs@.
Zachary Ware [Mon, 13 Jan 2014 22:08:54 +0000 (16:08 -0600)]
Correct a typo.  Found by Lauri Hakko on docs@.

11 years agoCloses #20242: Merged fix from 3.3.
Vinay Sajip [Mon, 13 Jan 2014 22:01:16 +0000 (22:01 +0000)]
Closes #20242: Merged fix from 3.3.

11 years agoIssue #20242: Fixed basicConfig() format strings for the alternative formatting styles.
Vinay Sajip [Mon, 13 Jan 2014 21:59:56 +0000 (21:59 +0000)]
Issue #20242: Fixed basicConfig() format strings for the alternative formatting styles.

11 years agoIssue #20229: Avoid plistlib deprecation warning in platform.mac_ver().
Ned Deily [Mon, 13 Jan 2014 19:34:19 +0000 (11:34 -0800)]
Issue #20229: Avoid plistlib deprecation warning in platform.mac_ver().

11 years agoMerge #20236: Fix sphinx markup.
R David Murray [Mon, 13 Jan 2014 18:51:42 +0000 (13:51 -0500)]
Merge #20236: Fix sphinx markup.

11 years ago#20236: Fix sphinx markup.
R David Murray [Mon, 13 Jan 2014 18:51:17 +0000 (13:51 -0500)]
#20236: Fix sphinx markup.

11 years agoMerge #20206, #5803: more efficient algorithm that doesn't truncate output.
R David Murray [Mon, 13 Jan 2014 18:30:13 +0000 (13:30 -0500)]
Merge #20206, #5803: more efficient algorithm that doesn't truncate output.

(No idea why test_tarfile is listed as changed...it isn't.)

11 years ago#20206, #5803: more efficient algorithm that doesn't truncate output.
R David Murray [Mon, 13 Jan 2014 18:19:21 +0000 (13:19 -0500)]
#20206, #5803: more efficient algorithm that doesn't truncate output.

This fixes an edge case (20206) where if the input ended in a character
needing encoding but there was no newline on the string, the last byte
of the encoded character would be dropped.  The fix is to use a more
efficient algorithm, provided by Serhiy Storchaka (5803), that does not
have the bug.

11 years agoTest the open of non-exitent tarfile in all modes.
Serhiy Storchaka [Mon, 13 Jan 2014 17:08:00 +0000 (19:08 +0200)]
Test the open of non-exitent tarfile in all modes.

11 years agoTest the open of non-exitent tarfile in all modes.
Serhiy Storchaka [Mon, 13 Jan 2014 17:07:33 +0000 (19:07 +0200)]
Test the open of non-exitent tarfile in all modes.

11 years agofix refleak in the error case
Benjamin Peterson [Mon, 13 Jan 2014 14:20:53 +0000 (09:20 -0500)]
fix refleak in the error case

11 years agoFixed typo.
Serhiy Storchaka [Mon, 13 Jan 2014 12:24:11 +0000 (14:24 +0200)]
Fixed typo.

11 years agoFixed typo.
Serhiy Storchaka [Mon, 13 Jan 2014 12:23:18 +0000 (14:23 +0200)]
Fixed typo.

11 years agomerge from 3.3
Senthil Kumaran [Mon, 13 Jan 2014 00:07:59 +0000 (16:07 -0800)]
merge from 3.3

Issue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in modules and in documentation.

11 years agoIssue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in modules and...
Senthil Kumaran [Mon, 13 Jan 2014 00:06:58 +0000 (16:06 -0800)]
Issue #19082: Working xmlrpc.server and xmlrpc.client examples. Both in modules and in documentation.

11 years agoIssue #20228: Argument Clinic now has special support for class special
Larry Hastings [Sun, 12 Jan 2014 22:12:59 +0000 (14:12 -0800)]
Issue #20228: Argument Clinic now has special support for class special
methods.

11 years agoMinor doc fix in Clinic howto.
Larry Hastings [Sun, 12 Jan 2014 21:57:36 +0000 (13:57 -0800)]
Minor doc fix in Clinic howto.

11 years agoIssue #20214: Fixed a number of small issues and documentation errors in
Larry Hastings [Sun, 12 Jan 2014 19:09:57 +0000 (11:09 -0800)]
Issue #20214: Fixed a number of small issues and documentation errors in
Argument Clinic (see issue for details).

11 years agosmall grammar fix.
Georg Brandl [Sun, 12 Jan 2014 17:03:12 +0000 (18:03 +0100)]
small grammar fix.

11 years agoIssue #20196: Fixed a bug where Argument Clinic did not generate correct
Larry Hastings [Sun, 12 Jan 2014 16:49:30 +0000 (08:49 -0800)]
Issue #20196: Fixed a bug where Argument Clinic did not generate correct
parsing code for functions with positional-only parameters where all arguments
are optional.

11 years agoIssue19995: fixed typo; switched from test.support.check_warnings to assertWarns
Ethan Furman [Sun, 12 Jan 2014 16:42:35 +0000 (08:42 -0800)]
Issue19995: fixed typo; switched from test.support.check_warnings to assertWarns

11 years agoIssue #20138: The wsgiref.application_uri() and wsgiref.request_uri()
Serhiy Storchaka [Sun, 12 Jan 2014 10:09:38 +0000 (12:09 +0200)]
Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()
functions now conform to PEP 3333 when handle non-ASCII URLs.

11 years agoIssue #20138: The wsgiref.application_uri() and wsgiref.request_uri()
Serhiy Storchaka [Sun, 12 Jan 2014 10:08:11 +0000 (12:08 +0200)]
Issue #20138: The wsgiref.application_uri() and wsgiref.request_uri()
functions now conform to PEP 3333 when handle non-ASCII URLs.

11 years agoFixed incorrect merge in 1638360eea41.
Serhiy Storchaka [Sun, 12 Jan 2014 10:01:13 +0000 (12:01 +0200)]
Fixed incorrect merge in 1638360eea41.

11 years agoIssue19995: issue deprecation warning for non-integer values to %c, %o, %x, %X
Ethan Furman [Sun, 12 Jan 2014 07:20:58 +0000 (23:20 -0800)]
Issue19995: issue deprecation warning for non-integer values to %c, %o, %x, %X

11 years agomerge with 3.3
Georg Brandl [Sun, 12 Jan 2014 07:10:52 +0000 (08:10 +0100)]
merge with 3.3

11 years agomerge heads
Georg Brandl [Sun, 12 Jan 2014 07:10:39 +0000 (08:10 +0100)]
merge heads

11 years agoDoc: update Sphinx toolchain also in make.bat
Georg Brandl [Sun, 12 Jan 2014 07:09:01 +0000 (08:09 +0100)]
Doc: update Sphinx toolchain also in make.bat

11 years agomerge from 3.3
Senthil Kumaran [Sun, 12 Jan 2014 06:22:21 +0000 (22:22 -0800)]
merge from 3.3

Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an
invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage
object.

11 years agoIssue #19092 - Raise a correct exception when cgi.FieldStorage is given an
Senthil Kumaran [Sun, 12 Jan 2014 06:20:16 +0000 (22:20 -0800)]
Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an
invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage
object.

11 years agoMerge with 3.3
Georg Brandl [Sat, 11 Jan 2014 19:04:29 +0000 (20:04 +0100)]
Merge with 3.3

11 years agoUpdate Sphinx toolchain.
Georg Brandl [Sat, 11 Jan 2014 19:04:19 +0000 (20:04 +0100)]
Update Sphinx toolchain.

11 years agoFix minor markup bug: sub-toctrees should not have :numbered:
Georg Brandl [Sat, 11 Jan 2014 18:52:17 +0000 (19:52 +0100)]
Fix minor markup bug: sub-toctrees should not have :numbered:

11 years agotkinter.Text.debug() now always returns 0/1.
Serhiy Storchaka [Sat, 11 Jan 2014 11:15:39 +0000 (13:15 +0200)]
tkinter.Text.debug() now always returns 0/1.
Fixed a regression inroduced in issue #6157.

11 years agotkinter.Text.debug() now always returns 0/1.
Serhiy Storchaka [Sat, 11 Jan 2014 11:13:46 +0000 (13:13 +0200)]
tkinter.Text.debug() now always returns 0/1.
Fixed a regression inroduced in issue #6157.

11 years agoFixed the serve.py script.
Serhiy Storchaka [Sat, 11 Jan 2014 09:53:13 +0000 (11:53 +0200)]
Fixed the serve.py script.
The application object must return an iterable yielding bytestrings.

11 years agoFixed the serve.py script.
Serhiy Storchaka [Sat, 11 Jan 2014 09:52:20 +0000 (11:52 +0200)]
Fixed the serve.py script.
The application object must return an iterable yielding bytestrings.

11 years agoFix ResourceWarning in test_asyncio.test_windows_events:
Victor Stinner [Fri, 10 Jan 2014 23:16:50 +0000 (00:16 +0100)]
Fix ResourceWarning in test_asyncio.test_windows_events:
close the write end of the socket pair

11 years agoCleanup properly proactor event loop
Victor Stinner [Fri, 10 Jan 2014 23:03:21 +0000 (00:03 +0100)]
Cleanup properly proactor event loop

* store the "self reading" future when the "self pipe" is closed (when the
  event loop is closed)
* store "accept" futures to cancel them when we stop serving
* close the "accept socket" if the "accept future" is cancelled

Fix many warnings which can be seen when unit tests are run in verbose mode.

11 years agoTry to fix some ttk tests. Error messages were changed in 8.6b3.
Serhiy Storchaka [Fri, 10 Jan 2014 22:10:56 +0000 (00:10 +0200)]
Try to fix some ttk tests.  Error messages were changed in 8.6b3.

11 years agoTry to fix some ttk tests. Error messages were changed in 8.6b3.
Serhiy Storchaka [Fri, 10 Jan 2014 22:10:04 +0000 (00:10 +0200)]
Try to fix some ttk tests.  Error messages were changed in 8.6b3.

11 years agoasyncio: Minimal pty support in UNIX read pipe, by Jonathan Slenders.
Guido van Rossum [Fri, 10 Jan 2014 21:30:04 +0000 (13:30 -0800)]
asyncio: Minimal pty support in UNIX read pipe, by Jonathan Slenders.

11 years agoasyncio: Fix race in subprocess transport, by Victor Stinner.
Guido van Rossum [Fri, 10 Jan 2014 21:28:59 +0000 (13:28 -0800)]
asyncio: Fix race in subprocess transport, by Victor Stinner.

11 years agoasyncio: Tiny cleanup in streams.py.
Guido van Rossum [Fri, 10 Jan 2014 21:26:38 +0000 (13:26 -0800)]
asyncio: Tiny cleanup in streams.py.

11 years agoasyncio: Don't special-case GeneratorExit in Condition.wait().
Guido van Rossum [Fri, 10 Jan 2014 21:25:38 +0000 (13:25 -0800)]
asyncio: Don't special-case GeneratorExit in Condition.wait().

11 years agonull merge from 3.3
Benjamin Peterson [Fri, 10 Jan 2014 15:24:59 +0000 (09:24 -0600)]
null merge from 3.3

11 years agofix build when SCHED_SPORADIC is defined (closes #20217)
Benjamin Peterson [Fri, 10 Jan 2014 15:22:40 +0000 (09:22 -0600)]
fix build when SCHED_SPORADIC is defined (closes #20217)

11 years agoIssue #19804: The test_find_mac test in test_uuid is now skipped if the
Serhiy Storchaka [Fri, 10 Jan 2014 13:08:07 +0000 (15:08 +0200)]
Issue #19804: The test_find_mac test in test_uuid is now skipped if the
ifconfig executable is not available.

11 years agoIssue #19804: The test_find_mac test in test_uuid is now skipped if the
Serhiy Storchaka [Fri, 10 Jan 2014 13:06:59 +0000 (15:06 +0200)]
Issue #19804: The test_find_mac test in test_uuid is now skipped if the
ifconfig executable is not available.

11 years agoRemove an unneeded cast.
Brett Cannon [Fri, 10 Jan 2014 12:43:55 +0000 (07:43 -0500)]
Remove an unneeded cast.

11 years agoIssue #19886: Use better estimated memory requirements for bigmem tests.
Serhiy Storchaka [Fri, 10 Jan 2014 11:39:27 +0000 (13:39 +0200)]
Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.

11 years agoIssue #19886: Use better estimated memory requirements for bigmem tests.
Serhiy Storchaka [Fri, 10 Jan 2014 11:37:54 +0000 (13:37 +0200)]
Issue #19886: Use better estimated memory requirements for bigmem tests.
Incorrect requirements can cause memory swapping.

11 years agoCloses #20200: Argument Clinic custom converter example should be in a
Zachary Ware [Fri, 10 Jan 2014 03:41:23 +0000 (21:41 -0600)]
Closes #20200: Argument Clinic custom converter example should be in a
'python' clinic block, not a 'clinic' clinic block.  Patch written by
Ryan Smith-Roberts.

11 years agoIssue #20152: import.c now uses Argument Clinic.
Brett Cannon [Fri, 10 Jan 2014 00:03:32 +0000 (19:03 -0500)]
Issue #20152: import.c now uses Argument Clinic.

11 years agoassertEquals is deprecated, use assertEqual instead.
Antoine Pitrou [Thu, 9 Jan 2014 23:02:38 +0000 (00:02 +0100)]
assertEquals is deprecated, use assertEqual instead.

11 years agoIssue #13107: argparse and optparse no longer raises an exception when output
Serhiy Storchaka [Thu, 9 Jan 2014 21:18:41 +0000 (23:18 +0200)]
Issue #13107: argparse and optparse no longer raises an exception when output
a help on environment with too small COLUMNS.  Based on patch by
Elazar Gershuni.

11 years agoIssue #13107: argparse and optparse no longer raises an exception when output
Serhiy Storchaka [Thu, 9 Jan 2014 21:14:27 +0000 (23:14 +0200)]
Issue #13107: argparse and optparse no longer raises an exception when output
a help on environment with too small COLUMNS.  Based on patch by
Elazar Gershuni.

11 years agoTry to fix test_ssl failures on some buildbots
Antoine Pitrou [Thu, 9 Jan 2014 20:30:17 +0000 (21:30 +0100)]
Try to fix test_ssl failures on some buildbots

11 years agoTry to fix test_ssl failures on some buildbots
Antoine Pitrou [Thu, 9 Jan 2014 20:28:48 +0000 (21:28 +0100)]
Try to fix test_ssl failures on some buildbots

11 years agoIssue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked...
Antoine Pitrou [Thu, 9 Jan 2014 19:09:03 +0000 (20:09 +0100)]
Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.

11 years agoRemove conditional: it is useless at this point (OpenSSL headers are not yet included)
Antoine Pitrou [Thu, 9 Jan 2014 19:07:41 +0000 (20:07 +0100)]
Remove conditional: it is useless at this point (OpenSSL headers are not yet included)

11 years agoIssue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked...
Antoine Pitrou [Thu, 9 Jan 2014 19:02:20 +0000 (20:02 +0100)]
Issue #20207: Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.

11 years agoDo not reset the line number because we already set file position to correct
Serhiy Storchaka [Thu, 9 Jan 2014 18:13:52 +0000 (20:13 +0200)]
Do not reset the line number because we already set file position to correct
value.

(fixes error in patch for issue #18960)

11 years agoDo not reset the line number because we already set file position to correct
Serhiy Storchaka [Thu, 9 Jan 2014 18:12:49 +0000 (20:12 +0200)]
Do not reset the line number because we already set file position to correct
value.

(fixes error in patch for issue #18960)

11 years agomerge 3.3
Benjamin Peterson [Thu, 9 Jan 2014 17:12:31 +0000 (11:12 -0600)]
merge 3.3

11 years agoclear zip stat cache after each ref leak run
Benjamin Peterson [Thu, 9 Jan 2014 17:10:30 +0000 (11:10 -0600)]
clear zip stat cache after each ref leak run

11 years agoIssue #18960: Fix bugs with Python source code encoding in the second line.
Serhiy Storchaka [Thu, 9 Jan 2014 16:41:59 +0000 (18:41 +0200)]
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.

11 years agoIssue #18960: Fix bugs with Python source code encoding in the second line.
Serhiy Storchaka [Thu, 9 Jan 2014 16:36:09 +0000 (18:36 +0200)]
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.