Commit Graph

10941 Commits

Author SHA1 Message Date
Serhiy Storchaka cba6b5d045 Issue #21526: Tkinter now supports new boolean type in Tcl 8.5. 2015-04-02 10:35:57 +03:00
Serhiy Storchaka 43b49593e7 Issue #23838: linecache now clears the cache and returns an empty result on
MemoryError.
2015-04-01 16:53:53 +03:00
Serhiy Storchaka bd8c629eb5 Issue #23799: Added test.test_support.start_threads() for running and
cleaning up multiple threads.
2015-04-01 12:56:39 +03:00
Serhiy Storchaka c0a2f2b008 Issue #22390: test.regrtest now emits a warning if temporary files or
directories are left after running a test.
2015-03-30 01:27:44 +03:00
Serhiy Storchaka 53b542fe30 Issue #23742: ntpath.expandvars() no longer loses unbalanced single quotes. 2015-03-25 16:39:58 +02:00
Serhiy Storchaka f95a57f9a1 Issue #21802: The reader in BufferedRWPair now is closed even when closing
writer failed in BufferedRWPair.close().
2015-03-24 23:23:42 +02:00
Serhiy Storchaka 40fd0e8d68 Issue #23671: string.Template now allows to specify the "self" parameter as
keyword argument.  string.Formatter now allows to specify the "self" and
the "format_string" parameters as keyword arguments.
2015-03-24 22:27:50 +02:00
Serhiy Storchaka d07ec7b082 Issue #23583: Fixed writing unicode to standard output stream in IDLE.
Added tests for standard IO streams in IDLE.
2015-03-24 19:45:45 +02:00
Serhiy Storchaka ac5164dd98 Issue #23583: Fixed writing unicode to standard output stream in IDLE.
Added tests for standard IO streams in IDLE.
2015-03-24 19:42:15 +02:00
Ezio Melotti 1afb9da747 #23512: list non-essential built-in functions after the table. Patch by Carlo Beccarini. 2015-03-24 13:44:58 +02:00
Ezio Melotti bc1fda39ae #11468: improve unittest basic example. Initial patch by Florian Preinstorfer. 2015-03-24 12:42:41 +02:00
Serhiy Storchaka f689f104aa Issue #21560: An attempt to write a data of wrong type no longer cause
GzipFile corruption.  Original patch by Wolfgang Maier.
2015-03-23 15:25:18 +02:00
R David Murray 836c82417f #23647: Increase imaplib's MAXLINE to accommodate modern mailbox sizes. 2015-03-22 16:17:11 -04:00
R David Murray b4b000f002 #23539: Set Content-Length to 0 for PUT, POST, and PATCH if body is None.
Some http servers will reject PUT, POST, and PATCH requests if they
do not have a Content-Length header.

Patch by James Rutherford.
2015-03-22 15:15:44 -04:00
Ned Deily a8e8f7ee1c Issue #23686: Update OS X 10.5 installer build to use OpenSSL 1.0.2a. 2015-03-19 16:19:27 -07:00
Serhiy Storchaka 8d3f505dcf Fixed Misc/NEWS entry for issue #23136. 2015-03-19 19:52:50 +02:00
Serhiy Storchaka d54c2e3f13 Issue #23136: _strptime now uniformly handles all days in week 0, including
Jan 30 of previous year.  Based on patch by Jim Carroll.
2015-03-19 19:13:25 +02:00
Serhiy Storchaka f249671d02 Issue #23138: Fixed parsing cookies with absent keys or values in cookiejar.
Patch by Demian Brecht.
2015-03-13 09:04:34 +02:00
Serhiy Storchaka 7c26be5b18 Issue #23051: multiprocessing.Pool methods imap() and imap_unordered() now
handle exceptions raised by an iterator.  Patch by Alon Diamant and Davin
Potts.
2015-03-13 08:31:34 +02:00
Serhiy Storchaka 59bdf6392d Issue #22928: Disabled HTTP header injections in httplib.
Original patch by Demian Brecht.
2015-03-12 11:12:51 +02:00
Serhiy Storchaka 205408dacb Issue #23615: Module tarfile is now can be reloaded with imp.reload(). 2015-03-11 17:31:59 +02:00
Antoine Pitrou 323ab6d732 Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. 2015-03-10 22:32:00 +01:00
Serhiy Storchaka 233e6988f4 Issue #22853: Fixed a deadlock when use multiprocessing.Queue at import time.
Patch by Florian Finkernagel and Davin Potts.
2015-03-06 22:17:25 +02:00
Ned Deily 8c51fedcdf Issue #23593: fix Misc/NEWS entries 2015-03-05 17:43:26 -08:00
Ned Deily 59439d8f0d Issue #23594: Update OS X 10.5 installer build to use OpenSSL 1.0.2. 2015-03-05 17:32:28 -08:00
Benjamin Peterson b1ebba5bd5 enable X509_V_FLAG_TRUSTED_FIRST when possible (closes #23476) 2015-03-04 22:11:12 -05:00
Antoine Pitrou 34c8d98306 Issue #23576: Avoid stalling in SSL reads when EOF has been reached in the SSL layer but the underlying connection hasn't been closed. 2015-03-04 20:51:55 +01:00
Serhiy Storchaka c620c11e62 Issue #23504: Added an __all__ to the types module. 2015-03-04 09:42:59 +02:00
Benjamin Peterson b027c6cae0 fix possible overflow bugs in unicodedata (closes #23367) 2015-03-02 11:17:05 -05:00
Benjamin Peterson f4875d5602 remove mention of Python 2.2 and 2.3 2015-03-01 20:59:22 -05:00
Victor Stinner e0a0bd6eaa Issue #23458: On POSIX, the file descriptor kept open by os.urandom() is now
set to non inheritable
2015-02-24 14:30:43 +01:00
Serhiy Storchaka cc49aa1381 Issue #6639: Module-level turtle functions no longer raise TclError after
closing the window.
2015-02-22 17:22:53 +02:00
Serhiy Storchaka b8285d96f4 Issue #22113: struct.pack_into() now supports new buffer protocol (in
particular accepts writable memoryview).
2015-02-21 19:51:17 +02:00
Serhiy Storchaka 4809d1fccd Issues #814253, #9179: Warnings now are raised when group references and
conditional group references are used in lookbehind assertions in regular
expressions.
2015-02-21 12:08:36 +02:00
Serhiy Storchaka 021d55ff74 Issue #23215: Multibyte codecs with custom error handlers that ignores errors
consumed too much memory and raised SystemError or MemoryError.
Original patch by Aleksi Torhamo.
2015-02-21 01:19:17 +02:00
Serhiy Storchaka 3173f7c904 Issue #5700: io.FileIO() called flush() after closing the file.
flush() was not called in close() if closefd=False.
2015-02-21 00:34:20 +02:00
Berker Peksag dc9d41d718 Issue #21548: Fix pydoc.synopsis() and pydoc.apropos() on modules with empty
docstrings.

Initial patch by Yuyang Guo.
2015-02-20 12:10:33 +02:00
Benjamin Peterson a0dd7dc1b0 remove rc4 from the default client ciphers (closes #23481) 2015-02-19 17:57:08 -05:00
Benjamin Peterson e3a950e510 remove RPM file, which is unused and unmaintained 2015-02-18 08:57:27 -05:00
Serhiy Storchaka c769040100 Issue #22885: Fixed arbitrary code execution vulnerability in the dumbdbm
module.  Original patch by Claudiu Popa.
2015-02-16 00:29:52 +02:00
Serhiy Storchaka 7fe04f1dca Issue #21849: Fixed xmlrpclib serialization of non-ASCII unicode strings in
the multiprocessing module.
2015-02-13 15:08:36 +02:00
Serhiy Storchaka 2bd8b22b6d Issue #21840: Fixed expanding unicode variables of form $var in
posixpath.expandvars().  Fixed all os.path implementations on
unicode-disabled builds.
2015-02-13 12:02:05 +02:00
Serhiy Storchaka 4068b01cb5 Issue #23392: Added tests for marshal C API that works with FILE*. 2015-02-06 08:56:33 +02:00
Ned Deily ca7ecf3194 Issue #23212: Update OS X installer build OpenSSL to 1.0.1l.
(currently only used for builds with <= 10.5 deployment targets)
2015-02-06 14:11:36 +11:00
Serhiy Storchaka d44bcc9b2f Issue #18982: Add tests for CLI of the calendar module. 2015-02-05 15:18:26 +02:00
Ned Deily fa11978f1b Issue #23345: Prevent test_ssl failures with large OpenSSL patch level
values (like 0.9.8zc).
2015-02-05 17:19:11 +11:00
Benjamin Peterson dda9121ad1 check for overflows in permutations() and product() (closes #23363, closes #23364) 2015-02-01 21:34:07 -05:00
Benjamin Peterson 17845c1786 check for overflow in combinations_with_replacement (closes #23365) 2015-02-01 21:10:47 -05:00
Benjamin Peterson 021dec1c96 detect overflow in combinations (closes #23366) 2015-02-01 20:59:00 -05:00
Serhiy Storchaka 9797bc374e Completed Misc/NEWS entry. 2015-01-31 11:42:04 +02:00
Stefan Krah 5606cd9800 Issue #23349: Fix off-by-one error in PyBuffer_ToContiguous(). Initial patch
by Richard Hansen.
2015-01-30 20:11:10 +01:00
Serhiy Storchaka 4c54387f11 Issue #22079: PyType_Ready() now checks that statically allocated type has
no dynamically allocated bases.
2015-01-28 10:52:49 +02:00
Serhiy Storchaka 0d8fe3b90b Issue #19949: The test_xpickle test now tests compatibility with installed
Python 2.7 and reports skipped tests.  Based on patch by Zachary Ware.
2015-01-27 22:44:45 +02:00
Serhiy Storchaka 0e0282eb14 Issue #23055: Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
and fix by Guido Vranken.
2015-01-27 22:17:56 +02:00
Serhiy Storchaka 3ce465ab56 Issue #23191: fnmatch functions that use caching are now threadsafe. 2015-01-27 11:40:51 +02:00
Serhiy Storchaka c328d11ef1 Issue #14099: Backout changeset c2c4cde55f6f (except adapted tests). 2015-01-26 13:45:04 +02:00
Serhiy Storchaka 73c086389a Issue #18518: timeit now rejects statements which can't be compiled outside
a function or a loop (e.g. "return" or "break").
2015-01-26 12:08:37 +02:00
Serhiy Storchaka 0013207200 Issue #11578: Backported test for the timeit module. 2015-01-26 11:54:32 +02:00
Benjamin Peterson bfd976fc17 simply ignore headers with no name (#19996)
Patch by Cory Benfield.
2015-01-25 23:34:42 -05:00
Benjamin Peterson b10bfbe036 pep 466 backport of alpn (#20188) 2015-01-23 16:35:37 -05:00
Antoine Pitrou c3edc19afc Issue #23248: Update ssl error codes from latest OpenSSL git master. 2015-01-18 17:39:32 +01:00
Serhiy Storchaka 2098d61aab Issue #23098: 64-bit dev_t is now supported in the os module. 2015-01-18 11:11:25 +02:00
Ned Deily b5daa3d6db Issue #23180: Rename IDLE "Windows" menu item to "Window".
Patch by Al Sweigart.
2015-01-17 21:03:41 -08:00
Benjamin Peterson 95ee9c7175 fix parsing reST with code or code-block directives (closes #23063)
Patch by Marc Abramowitz.
2015-01-14 23:56:35 -05:00
Benjamin Peterson 07f90476b9 fix instances of consecutive articles (closes #23221)
Patch by Karan Goel.
2015-01-13 09:17:24 -05:00
Ned Deily 7a3082f60a Issue #23212: 2.7-specific OS X installer updates 2015-01-09 13:29:04 -08:00
Victor Stinner 7c90667f74 Issue #21356: Make ssl.RAND_egd() optional to support LibreSSL. The
availability of the function is checked during the compilation. Patch written
by Bernard Spil.
2015-01-06 13:53:37 +01:00
Benjamin Peterson 7b4b28469b allow a SSLContext to be given to ftplib.FTP_TLS 2015-01-04 15:36:31 -06:00
Benjamin Peterson 9fe67ceebf make SSLv23 the default version in ftplib (closes #23111) 2015-01-04 10:20:16 -06:00
Benjamin Peterson 27c269a1fe use getentropy when available (backport of 75ede5bec8db) (closes #23115) 2014-12-26 11:09:00 -06:00
Benjamin Peterson a71cfc5cf3 fix behavior of trailing slash redirection when a query string is involved (closes #23112) 2014-12-26 10:53:43 -06:00
Benjamin Peterson 53ae6145a0 allow more operations to work on detached streams (closes #23093)
Patch by Martin Panter.
2014-12-21 20:51:50 -06:00
Serhiy Storchaka 74a651b4e6 Issue #23071: Added missing names to codecs.__all__. Patch by Martin Panter. 2014-12-20 17:42:24 +02:00
Terry Jan Reedy 16e093db98 Issue #20577: move configuration of FormatParagraph extension to new extension
configuration dialog.  Patch by Tal Einat.
2014-12-16 03:21:19 -05:00
Benjamin Peterson 64e8f6ec1c use autoconf macro to check for pkg-config (closes #15506) 2014-12-15 00:00:23 -05:00
Benjamin Peterson 7a6a97352d pop the loop block even for infinite while loops (closes #23048) 2014-12-13 16:06:19 -05:00
Ned Deily 0be4b1ef58 Issue #23032: Fix installer build failures on OS X 10.4 Tiger
by disabling assembly code in the OpenSSL build.
2014-12-11 15:55:42 -08:00
Terry Jan Reedy f0f09b9470 Issue #23006: Improve the documentation and indexing of dict.__missing__.
Add an entry in the language datamodel special methods section.
Revise and index its discussion in the stdtypes mapping/dict section.
Backport the code example from 3.4.
2014-12-10 18:38:07 -05:00
Serhiy Storchaka e6b42438fa Issue #23016: A warning no longer produces an AttributeError when sys.stderr
is None.
2014-12-10 23:05:33 +02:00
Benjamin Peterson e57af0f61f merge 2.7.9 release branch 2014-12-10 10:58:13 -05:00
Benjamin Peterson a5f49f5bb4 bump to 2.7.9 final 2014-12-10 10:57:00 -05:00
Ned Deily 92b2b485e7 Issue #17128: Use private version of OpenSSL for 2.7.9 OS X 10.5+ installer.
Among other issues, the Apple-supplied 0.9.7 libs for the 10.5 ABI cannot
verify newer SHA-256 certs as now used by python.org services.  Document
in the installer ReadMe some of the certificate management issues that
users now need to be more concerned with due to PEP 476's enabling cert
verification by default.  For now, continue to use the Apple-supplied
0.9.8 libs for the 10.6+ installer since they use Apple private APIs to
verify certificates using the system- and user-managed CA keychain stores.
2014-12-09 23:45:13 -08:00
Ned Deily 62a8660267 Issue #17128: Use private version of OpenSSL for 2.7.9 OS X 10.5+ installer.
Among other issues, the Apple-supplied 0.9.7 libs for the 10.5 ABI cannot
verify newer SHA-256 certs as now used by python.org services.  Document
in the installer ReadMe some of the certificate management issues that
users now need to be more concerned with due to PEP 476's enabling cert
verification by default.  For now, continue to use the Apple-supplied
0.9.8 libs for the 10.6+ installer since they use Apple private APIs to
verify certificates using the system- and user-managed CA keychain stores.
2014-12-09 23:45:13 -08:00
Benjamin Peterson 204a0eca5a merge 2.7.9 release branch 2014-12-07 13:41:52 -05:00
Benjamin Peterson 227f6e0dc5 remove HTTPSConnection's check_hostname parameter (#22959) 2014-12-07 13:41:26 -05:00
Benjamin Peterson daa491b6d7 merge 2.7.9 release branch 2014-12-05 22:02:33 -05:00
Benjamin Peterson 60766c47e7 allow ssl module to compile if openssl doesn't support SSL 3 (closes #22935)
Patch by Kurt Roeckx.
2014-12-05 21:59:35 -05:00
Terry Jan Reedy bedaefc705 Issue #16893: Update Idle doc chapter to match current Idle and add new
information.
2014-12-05 20:25:14 -05:00
Benjamin Peterson af18b4cb55 merge 2.7.9 release branch 2014-12-05 20:16:53 -05:00
Benjamin Peterson 9e8f523c5b add a default limit for the amount of data xmlrpclib.gzip_decode will return (closes #16043) 2014-12-05 20:15:15 -05:00
Benjamin Peterson dabfc56b57 smtplib: limit amount read from the network (closes #16042) 2014-12-05 20:05:18 -05:00
Benjamin Peterson faad6bbea6 in poplib, limit maximum line length that we read from the network (closes #16041)
Patch from Berker Peksag.
2014-12-05 20:02:38 -05:00
Serhiy Storchaka 45aa771fe9 Issue #14099: ZipFile.open() no longer reopen the underlying file. Objects
returned by ZipFile.open() can now operate independently of the ZipFile even
if the ZipFile was created by passing in a file-like object as the first
argument to the constructor.
2014-12-03 09:11:12 +02:00
Terry Jan Reedy 53ab7583dd Add NEWS items for Idle patches already in 2.7.9rc1. 2014-12-01 16:59:02 -05:00
Serhiy Storchaka d862db0d09 Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails.
Original patch by Martin Panter.
2014-12-01 13:07:28 +02:00
Serhiy Storchaka 169f195b66 Issue #22943: bsddb tests are locale independend now.
This fixes tests on 8-bit locales (in particular on Windows).
2014-12-01 10:34:23 +02:00
Benjamin Peterson d5355178ad merge 2.7.9 release branch 2014-11-30 11:51:48 -05:00
Benjamin Peterson f8c8d2e366 backout fac649bf2d10 (#9179) for further consideration 2014-11-30 11:47:54 -05:00
Benjamin Peterson 5a608c2e8b merge 2.7.9 release branch 2014-11-29 22:57:15 -05:00
Benjamin Peterson efa3cf84d2 add context parameter to xmlrpclib.ServerProxy (#22960)
Patch from Alex Gaynor.
2014-11-29 22:55:35 -05:00