]> granicus.if.org Git - python/log
python
10 years agoBump to 3.3.4rc1.
Georg Brandl [Sat, 25 Jan 2014 08:19:50 +0000 (09:19 +0100)]
Bump to 3.3.4rc1.

10 years agoUpdate IDLE news from Misc/NEWS.
Georg Brandl [Sat, 25 Jan 2014 08:19:36 +0000 (09:19 +0100)]
Update IDLE news from Misc/NEWS.

10 years agodoc: pydoc topic and suspicious markup update
Georg Brandl [Sat, 25 Jan 2014 08:15:44 +0000 (09:15 +0100)]
doc: pydoc topic and suspicious markup update

10 years ago#20311: revert changes to 3.3 branch for now until experts have decided how to resolv...
Georg Brandl [Sat, 25 Jan 2014 08:11:13 +0000 (09:11 +0100)]
#20311: revert changes to 3.3 branch for now until experts have decided how to resolve the issue.

10 years ago#16042: CVE-2013-1752: smtplib fix for unlimited readline() from socket
Georg Brandl [Sat, 25 Jan 2014 08:02:18 +0000 (09:02 +0100)]
#16042: CVE-2013-1752: smtplib fix for unlimited readline() from socket

10 years agoupdate hosting faq
Benjamin Peterson [Sat, 25 Jan 2014 04:59:57 +0000 (23:59 -0500)]
update hosting faq

10 years agoFix typo.
Serhiy Storchaka [Fri, 24 Jan 2014 20:28:06 +0000 (22:28 +0200)]
Fix typo.

10 years agoIssue #20384: Fix the test_tarfile test on Windows.
Serhiy Storchaka [Fri, 24 Jan 2014 20:19:23 +0000 (22:19 +0200)]
Issue #20384: Fix the test_tarfile test on Windows.

On Windows os.open() error message doesn't contain file name.

10 years agonew plan: just remove typecasts (closes #20374)
Benjamin Peterson [Fri, 24 Jan 2014 16:44:16 +0000 (11:44 -0500)]
new plan: just remove typecasts (closes #20374)

10 years agoIssue 20317: Remove debugging code from contextlib
Nick Coghlan [Fri, 24 Jan 2014 13:05:45 +0000 (23:05 +1000)]
Issue 20317: Remove debugging code from contextlib

- Alex J Burke noticed a debugging raise in the commit that
  fixed the original bug reported in issue 20317
- this showed that multiple iterations through the affected
  loop wasn't actually being tested

10 years agouse new readline function types (closes #20374)
Benjamin Peterson [Fri, 24 Jan 2014 05:32:12 +0000 (00:32 -0500)]
use new readline function types (closes #20374)

10 years agoFixed test_user_command on OpenSolaris where floats can have different string
Serhiy Storchaka [Thu, 23 Jan 2014 14:48:44 +0000 (16:48 +0200)]
Fixed test_user_command on OpenSolaris where floats can have different string
representation in Tcl and Python.

10 years agoIssue #19936: Restored executable bits for several libffi files.
Serhiy Storchaka [Thu, 23 Jan 2014 14:22:55 +0000 (16:22 +0200)]
Issue #19936: Restored executable bits for several libffi files.
These files have shebangs and executable bits in the libffi distribution.

10 years agoAdded test_user_command in test_tcl.
Serhiy Storchaka [Thu, 23 Jan 2014 07:44:05 +0000 (09:44 +0200)]
Added test_user_command in test_tcl.

It tests the convertion Tcl values to Python values when Tcl calls a command
implemented on Python. Currently all values are passed as strings.

10 years agoIssue #17390: Add Python version to Idle editor window title bar.
Terry Jan Reedy [Thu, 23 Jan 2014 05:36:46 +0000 (00:36 -0500)]
Issue #17390: Add Python version to Idle editor window title bar.
Original patches by Edmond Burnett and Kent Johnson.

10 years agoIssue #20317: Don't create a reference loop in ExitStack
Nick Coghlan [Wed, 22 Jan 2014 12:24:46 +0000 (22:24 +1000)]
Issue #20317: Don't create a reference loop in ExitStack

10 years agoIssue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
Terry Jan Reedy [Wed, 22 Jan 2014 02:12:24 +0000 (21:12 -0500)]
Issue #20818: Remove code from idlelib.CallTipWindow.showtip that is now
completely redundant. After 16638 patch, CallTips.get_argspec trims over-long
signature strings as well as docstring lines.

10 years agoIssue #16638: Include up to 5 docstring header lines (before first blank) in
Terry Jan Reedy [Wed, 22 Jan 2014 01:45:17 +0000 (20:45 -0500)]
Issue #16638: Include up to 5 docstring header lines (before first blank) in
Idle calltips. This is needed for builtins, such bytes (which is why 5).
Based on patch by Serhiy Storchaka.

10 years agoIssue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError.
Florent Xicluna [Wed, 22 Jan 2014 00:11:43 +0000 (01:11 +0100)]
Issue #17825: Cursor ^ is correctly positioned for SyntaxError and IndentationError.

10 years agoIssue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
Stefan Krah [Tue, 21 Jan 2014 21:58:40 +0000 (22:58 +0100)]
Issue #20246: Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.

10 years agoIssue #16630: Make Idle calltips work even when __getattr__ raises.
Terry Jan Reedy [Tue, 21 Jan 2014 20:36:51 +0000 (15:36 -0500)]
Issue #16630: Make Idle calltips work even when __getattr__ raises.
Initial patch by Roger Serwy.

10 years agoIssue #2382: SyntaxError cursor "^" now is written at correct position in most
Serhiy Storchaka [Tue, 21 Jan 2014 20:26:52 +0000 (22:26 +0200)]
Issue #2382: SyntaxError cursor "^" now is written at correct position in most
cases when multibyte characters are in line (before "^").  This still not
works correctly with wide East Asian characters.

10 years agoIssue #20301: Mention the correct KEY_* value as the default
Zachary Ware [Tue, 21 Jan 2014 19:49:22 +0000 (13:49 -0600)]
Issue #20301: Mention the correct KEY_* value as the default
for 'access' in winreg.DeleteKeyEx.  Already correct in the docs
function signature and docstring.  Noticed by Justin Foo.

10 years agofix deprecated-removed directive with sphinx 1.2
Georg Brandl [Tue, 21 Jan 2014 18:20:31 +0000 (19:20 +0100)]
fix deprecated-removed directive with sphinx 1.2

10 years agoIssue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.
Terry Jan Reedy [Tue, 21 Jan 2014 08:07:51 +0000 (03:07 -0500)]
Issue #16655: Explain why Idle's test_calltips has 'fragile' tests of builtins.

10 years agoIssue #20122: Idlelib: Move tests in CallTips.py to test_calltips.py.
Terry Jan Reedy [Tue, 21 Jan 2014 05:26:21 +0000 (00:26 -0500)]
Issue #20122: Idlelib: Move tests in CallTips.py to test_calltips.py.

10 years agoIssue #20222: file is no longer a builtin in 3.x.
Terry Jan Reedy [Tue, 21 Jan 2014 05:01:51 +0000 (00:01 -0500)]
Issue #20222: file is no longer a builtin in 3.x.

10 years agoIssue #20311: Try to fix the unit test, use time.monotonic() instead of
Victor Stinner [Tue, 21 Jan 2014 01:37:41 +0000 (02:37 +0100)]
Issue #20311: Try to fix the unit test, use time.monotonic() instead of
time.perf_counter()

Move also the unit test at the end.

10 years agoIssue #20311: select.epoll.poll() now rounds the timeout away from zero,
Victor Stinner [Tue, 21 Jan 2014 00:41:00 +0000 (01:41 +0100)]
Issue #20311: select.epoll.poll() now rounds the timeout away from zero,
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.

10 years agoIssue #20262: Warnings are raised now when duplicate names are added in the
Serhiy Storchaka [Mon, 20 Jan 2014 19:57:40 +0000 (21:57 +0200)]
Issue #20262: Warnings are raised now when duplicate names are added in the
ZIP file or too long ZIP file comment is truncated.

10 years agoIssue #20315: Removed support for backward compatibility with early 2.x versions.
Serhiy Storchaka [Mon, 20 Jan 2014 19:29:31 +0000 (21:29 +0200)]
Issue #20315: Removed support for backward compatibility with early 2.x versions.

10 years agoIssue #19036: Including locale.h should not depend on HAVE_LANGINFO_H.
Stefan Krah [Mon, 20 Jan 2014 14:31:08 +0000 (15:31 +0100)]
Issue #19036: Including locale.h should not depend on HAVE_LANGINFO_H.

10 years agoput notes in a ..note section
Benjamin Peterson [Mon, 20 Jan 2014 05:10:23 +0000 (00:10 -0500)]
put notes in a ..note section

10 years agodocument that a new Python thread context is created in ctypes callbacks (closes...
Benjamin Peterson [Mon, 20 Jan 2014 05:09:53 +0000 (00:09 -0500)]
document that a new Python thread context is created in ctypes callbacks (closes #6627)

Patch by Nikolaus Rath.

10 years agoimprove description of buffers argument for readv/writev (closes #17811)
Benjamin Peterson [Sun, 19 Jan 2014 03:54:59 +0000 (22:54 -0500)]
improve description of buffers argument for readv/writev (closes #17811)

Patch by Nikolaus Rath.

10 years agocorrect news entry for #18574
Benjamin Peterson [Sun, 19 Jan 2014 03:31:27 +0000 (22:31 -0500)]
correct news entry for #18574

10 years agoadd Nikolaus Rath to ACKS
Benjamin Peterson [Sun, 19 Jan 2014 02:50:35 +0000 (21:50 -0500)]
add Nikolaus Rath to ACKS

10 years agofix handling of 100-continue status code (closes #18574)
Benjamin Peterson [Sun, 19 Jan 2014 02:50:18 +0000 (21:50 -0500)]
fix handling of 100-continue status code (closes #18574)

10 years ago#19855: restore use of LC_ALL, not LC_MESSAGES
R David Murray [Sat, 18 Jan 2014 19:56:10 +0000 (14:56 -0500)]
#19855: restore use of LC_ALL, not LC_MESSAGES

I didn't realize LC_ALL was an override, and I should have.  I tried to
make a test, but it is not clear that the LC variables actually affect
the strings that uuid is using to parse the command output.

10 years agoIssue #20270: urllib.urlparse now supports empty ports.
Serhiy Storchaka [Sat, 18 Jan 2014 16:30:33 +0000 (18:30 +0200)]
Issue #20270: urllib.urlparse now supports empty ports.

10 years agoIssue #20244: Fixed possible file leaks when unexpected error raised in
Serhiy Storchaka [Sat, 18 Jan 2014 14:28:08 +0000 (16:28 +0200)]
Issue #20244: Fixed possible file leaks when unexpected error raised in
tarfile open functions.

10 years agoIssue #20243: TarFile no longer raise ReadError when opened in write mode.
Serhiy Storchaka [Sat, 18 Jan 2014 14:14:10 +0000 (16:14 +0200)]
Issue #20243: TarFile no longer raise ReadError when opened in write mode.

10 years agoIssue #20238: TarFile opened with external fileobj and "w:gz" mode didn't
Serhiy Storchaka [Sat, 18 Jan 2014 13:53:05 +0000 (15:53 +0200)]
Issue #20238: TarFile opened with external fileobj and "w:gz" mode didn't
write complete output on close.

10 years agoIssue #20245: The open functions in the tarfile module now correctly handle empty...
Serhiy Storchaka [Sat, 18 Jan 2014 13:35:37 +0000 (15:35 +0200)]
Issue #20245: The open functions in the tarfile module now correctly handle empty mode.

10 years agorm extra whitespace
Benjamin Peterson [Sat, 18 Jan 2014 05:49:04 +0000 (00:49 -0500)]
rm extra whitespace

10 years agolink to builtin open not io.open
Benjamin Peterson [Sat, 18 Jan 2014 05:47:00 +0000 (00:47 -0500)]
link to builtin open not io.open

10 years agodescribe type of Popen streams (closes #17814)
Benjamin Peterson [Sat, 18 Jan 2014 05:45:56 +0000 (00:45 -0500)]
describe type of Popen streams (closes #17814)

Patch more or less by Nikolaus Rath.

10 years agoIssue #20265: Updated some parts of the Using Windows document.
Zachary Ware [Fri, 17 Jan 2014 21:23:42 +0000 (15:23 -0600)]
Issue #20265: Updated some parts of the Using Windows document.

Includes:
-mention cx_Freeze instead of py2exe (at least until py2exe supports Python 3)
-update ActivePython link
-Remove mention of platforms that were never supported by Python 3 (Win9x, DOS)

10 years agoavoid a compiler warning about assigning const char * to char *.
Gregory P. Smith [Fri, 17 Jan 2014 20:08:49 +0000 (12:08 -0800)]
avoid a compiler warning about assigning const char * to char *.

10 years agosort os.listxattr results before comparing it to avoid depending on the
Gregory P. Smith [Fri, 17 Jan 2014 20:01:22 +0000 (12:01 -0800)]
sort os.listxattr results before comparing it to avoid depending on the
ordering of the directory information in the underlying filesystem.

10 years agoAdded example to recently added cookbook entry.
Vinay Sajip [Fri, 17 Jan 2014 18:36:02 +0000 (18:36 +0000)]
Added example to recently added cookbook entry.

10 years agoFix some typos/grammar in current sections of NEWS.
Zachary Ware [Fri, 17 Jan 2014 15:30:03 +0000 (09:30 -0600)]
Fix some typos/grammar in current sections of NEWS.

10 years agoIssue #20266: Update parts of the Windows FAQ
Zachary Ware [Fri, 17 Jan 2014 14:59:44 +0000 (08:59 -0600)]
Issue #20266: Update parts of the Windows FAQ

10 years agoIssue #19936: Remove executable bits from C source files and several forgotten
Serhiy Storchaka [Thu, 16 Jan 2014 16:48:45 +0000 (18:48 +0200)]
Issue #19936: Remove executable bits from C source files and several forgotten
test files.

10 years agoMerge heads
Serhiy Storchaka [Thu, 16 Jan 2014 15:20:02 +0000 (17:20 +0200)]
Merge heads

10 years agoIssue #19936: Added executable bits or shebang lines to Python scripts which
Serhiy Storchaka [Thu, 16 Jan 2014 15:15:49 +0000 (17:15 +0200)]
Issue #19936: Added executable bits or shebang lines to Python scripts which
requires them.  Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface.  Fixed
shebang line to use python3 executable in the unittestgui script.

10 years agolinkify chain.from_iterable (closes #20272)
Benjamin Peterson [Thu, 16 Jan 2014 15:10:13 +0000 (10:10 -0500)]
linkify chain.from_iterable (closes #20272)

10 years agoupdate pysqlite website (closes #20278)
Benjamin Peterson [Thu, 16 Jan 2014 14:52:38 +0000 (09:52 -0500)]
update pysqlite website (closes #20278)

10 years agoIssue #19936: Disable shebang lines in order to prevent using a random
Stefan Krah [Thu, 16 Jan 2014 13:33:27 +0000 (14:33 +0100)]
Issue #19936: Disable shebang lines in order to prevent using a random
system python.

10 years agoAdded cookbook entry on alternative formatting styles.
Vinay Sajip [Wed, 15 Jan 2014 15:09:05 +0000 (15:09 +0000)]
Added cookbook entry on alternative formatting styles.

10 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.

10 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.

10 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.

10 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@.

10 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@.

10 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.

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

10 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)

10 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.

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

10 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)

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

10 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.

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

10 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.

10 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.

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

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 #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 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 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 agoUpdate Sphinx toolchain.
Georg Brandl [Sat, 11 Jan 2014 19:04:19 +0000 (20:04 +0100)]
Update Sphinx toolchain.

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:52:20 +0000 (11:52 +0200)]
Fixed the serve.py script.
The application object must return an iterable yielding bytestrings.

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 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: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 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 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:28:48 +0000 (21:28 +0100)]
Try to fix test_ssl failures on some buildbots

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: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 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: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.

11 years agofix zipimport ref leak
Benjamin Peterson [Thu, 9 Jan 2014 15:36:10 +0000 (09:36 -0600)]
fix zipimport ref leak

11 years agoIssue #20078: Reading malformed zipfiles no longer hangs with 100% CPU
Serhiy Storchaka [Thu, 9 Jan 2014 12:50:20 +0000 (14:50 +0200)]
Issue #20078: Reading malformed zipfiles no longer hangs with 100% CPU
consumption.

11 years agoFix verb tense in base64 docs, and the phrasing of a news entry.
R David Murray [Wed, 8 Jan 2014 23:09:29 +0000 (18:09 -0500)]
Fix verb tense in base64 docs, and the phrasing of a news entry.

11 years agoIssue #20113: Fix test_posix on OpenIndiana
Victor Stinner [Wed, 8 Jan 2014 15:01:31 +0000 (16:01 +0100)]
Issue #20113: Fix test_posix on OpenIndiana