Commit Graph

65811 Commits

Author SHA1 Message Date
Christian Heimes 56656b0118 add proper dependencies on expat headers and sources 2013-02-09 17:02:06 +01:00
Serhiy Storchaka 276f1d5139 Issue #7358: cStringIO.StringIO now supports writing to and reading from
a stream larger than 2 GiB on 64-bit systems.
2013-02-09 13:47:43 +02:00
Serhiy Storchaka beaa3adae9 Issue #10355: SpooledTemporaryFile properties and xreadline method now work for unrolled files. 2013-02-09 12:20:18 +02:00
Serhiy Storchaka 62e709c52b Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:30 +02:00
Ned Deily ed1e4382c4 Issue #17161: make install now also installs a python2 and python man page. 2013-02-08 22:51:52 -08:00
Serhiy Storchaka c12dcd2e4d Fix accidental non-breakable space (U+00A0). 2013-02-08 11:21:32 +02:00
Gregory P. Smith ec02217f4c whitespace fix 2013-02-07 22:18:21 -08:00
Gregory P. Smith a26ec65d93 Issue #6972: fix the documentation mis applied patch. 2013-02-07 22:11:03 -08:00
Serhiy Storchaka 35c52b687f Issue #17073: Fix some integer overflows in sqlite3 module. 2013-02-07 16:59:34 +02:00
Serhiy Storchaka d5327d95d2 Issue #17043: The unicode-internal decoder no longer read past the end of
input buffer.
2013-02-07 16:23:11 +02:00
Serhiy Storchaka 4a88041444 Issue #17118: Add new tests for testing Python-Tcl interaction. 2013-02-07 15:37:53 +02:00
Serhiy Storchaka 8e8bbc5e7d Fix test_from_dll* in test_returnfuncptrs.py. 2013-02-07 14:57:53 +02:00
Senthil Kumaran 785d1b1703 Fix Issue17069: Document getcode method in urllib.request.rst 2013-02-07 00:51:34 -08:00
R David Murray 9b3085cdf5 #17142: fix apparent copy and paste error in test_all. 2013-02-06 10:06:10 -05:00
R David Murray 381372d1be #17091: update docstring for _thread.Lock.acquire.
The main docs were fixed to remove mention of None long ago,
but the docstring was not.  Reported by Armin Rigo, patch
by Ian Cordasco.
2013-02-04 10:29:38 -05:00
Serhiy Storchaka 28ababcda4 Temporarily disable test_from_dll in test_returnfuncptrs.py for Windows. 2013-02-04 15:19:21 +02:00
Serhiy Storchaka a07a8b4f18 Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.
2013-02-04 12:45:46 +02:00
Benjamin Peterson f727c31133 fix find_library on Solaris (closes #5289) 2013-02-03 19:25:11 -05:00
Éric Araujo 3e081c73b8 Add alias to restore 2.7.2 compatibility for setup scripts (#13994).
The customize_compiler function moved many times during the 2.7 series;
in 2.7.3, setup scripts importing this function from ccompiler were
broken.  This commit restores compatibility without reintroducing the
issue that #13994 originally fixed (duplication of the function).

A unit test makes little sense here, as distutils tests never do imports
in functions, and the fix is very simple.
2013-02-03 11:41:19 -05:00
Serhiy Storchaka 354d50ee37 Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:10:42 +02:00
Ned Deily cc23cc672f Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
2013-02-02 15:06:45 -08:00
Antoine Pitrou d66c0ee76e Issue #15633: httplib.HTTPResponse is now mark closed when the server sends less than the advertised Content-Length. 2013-02-02 22:49:34 +01:00
Nadeem Vawda 1efd9824d8 Back out fix for issue #13886; it introduced a new bug in interactive readline use. 2013-02-02 20:52:54 +01:00
Raymond Hettinger 426453282c Issue 16398: Use memcpy() in deque.rotate(). 2013-02-02 10:23:37 -08:00
Serhiy Storchaka 2a051fa117 Fix test for issue #6972. 2013-02-02 19:25:57 +02:00
Serhiy Storchaka a8d64ae304 Issue #17034: Use Py_CLEAR() in stringobject.c. 2013-02-02 18:43:58 +02:00
Serhiy Storchaka 05fd744122 Preserve backslashes in malicious zip files for testing issue #6972. 2013-02-02 18:34:57 +02:00
Benjamin Peterson eff492f4b7 Issue #15881: Fixed atexit hook in multiprocessing. 2013-02-02 11:15:50 -05:00
Benjamin Peterson 99b0b72619 merge heads 2013-02-02 11:10:11 -05:00
Serhiy Storchaka 13e56c73b7 Fix the test and remove trailing dots on Windows for issue #6972. 2013-02-02 17:46:33 +02:00
Serhiy Storchaka dc6dc4bc31 Fix a Cyrillic "C" inroduced into the docs by patch for issue #6972. 2013-02-02 13:27:02 +02:00
Serhiy Storchaka 7c068750b6 Fix translating of illegal characters on Windows (issue #6972). 2013-02-02 12:30:49 +02:00
Serhiy Storchaka 23298cb7f5 Fix tests for issue #11159. 2013-02-02 12:16:22 +02:00
Serhiy Storchaka 07fbf60cc8 Merge heads 2013-02-02 10:36:43 +02:00
Serhiy Storchaka 8673ab97cc Issue #11159: SAX parser now supports unicode file names. 2013-02-02 10:28:30 +02:00
Ned Deily 7045f0579b Issue #15116: Remove references to appscript as it is no longer being
supported.
2013-02-02 00:14:44 -08:00
Ned Deily 6e7da15279 Issue #15587: Enable Tk high-resolution text rendering on Macs with
Retina displays.  Applies to Tkinter apps, such as IDLE, on OS X
framework builds linked with Cocoa Tk 8.5+.
Suggested by Kevin Walzer
2013-02-01 23:10:56 -08:00
Gregory P. Smith a8a3468abe In the _hashlib module, only initialize the static data for OpenSSL's
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.
2013-02-01 17:00:14 -08:00
Gregory P. Smith c0022b2d8c Silence a -Wformat-extra-argument warning when compiling. 2013-02-01 16:13:27 -08:00
Ned Deily acf7b95219 Issue #16256: OS X installer now sets correct permissions for doc directory. 2013-02-01 13:58:00 -08:00
Gregory P. Smith a06ad5b366 better news entry 2013-02-01 13:07:27 -08:00
Gregory P. Smith a998ad0135 Additional fix for Issue #12268: The io module file object writelines() methods
no longer abort early when one of its write system calls is interrupted (EINTR).
2013-02-01 13:02:59 -08:00
Gregory P. Smith 608cc451c7 Fixes Issue #6972: The zipfile module no longer overwrites files outside of
its destination path when extracting malicious zip files.
2013-02-01 11:40:18 -08:00
Serhiy Storchaka f39d52f8cb Issue #1783: Remove declarations of nonexistent private variables. 2013-02-01 13:13:32 +02:00
Ezio Melotti 139e445270 #16128: clarify that instances of user-defined classes compare equal with themselves. 2013-02-01 05:18:44 +02:00
doko@python.org d65e2bab3b - Issue #17086: Backport the patches from the 3.3 branch to cross-build
the package.
2013-01-31 23:52:03 +01:00
Serhiy Storchaka c5200b489d Issue #17041: Fix doctesting when Python is configured with the
--without-doc-strings.
2013-01-31 16:10:15 +02:00
Serhiy Storchaka 8d510cd6e1 Issue #17049: Localized calendar methods now return unicode if a locale
includes an encoding and the result string contains month or weekday (was
regression from Python 2.6).
2013-01-31 15:57:51 +02:00
Serhiy Storchaka 0be506a5ba Issue #4844: ZipFile now raises BadZipfile when opens a ZIP file with an
incomplete "End of Central Directory" record.  Original patch by Guilherme
Polo and Alan McIntyre.
2013-01-31 15:26:55 +02:00
Ned Deily 18fae3f954 Issue #13590: OS X Xcode 4 - improve support for universal extension modules
In particular, fix extension module build failures when trying to use
    32-bit-only installer Pythons on systems with Xcode 4 (currently
    OS X 10.8, 10.7, and optionally 10.6).
    * Backport 3.3.0 fixes to 2.7 branch (for release in 2.7.4)
    * Since Xcode 4 removes ppc support, extension module builds now
      check for ppc compiler support and by default remove ppc and
      ppc64 archs when they are not available.
    * Extension module builds now revert to using system installed
      headers and libs (/usr and /System/Library) if the SDK used
      to build the interpreter is not installed or has moved.
    * Try to avoid building extension modules with deprecated
      and problematic Apple llvm-gcc compiler.  If original compiler
      is not available, use clang instead by default.
2013-01-31 01:24:55 -08:00