]>
granicus.if.org Git - python/log
Zachary Ware [Sat, 13 May 2017 14:16:44 +0000 (09:16 -0500)]
Fix warnings due to deprecated latex options (GH-1563)
Zachary Ware [Sat, 13 May 2017 14:16:25 +0000 (09:16 -0500)]
Update susp-ignored.csv (GH-1564)
Victor Stinner [Fri, 12 May 2017 09:51:38 +0000 (11:51 +0200)]
bpo-6393: Fix locale.getprerredencoding() on macOS (#1555)
Fix for bpo-6393: Python crashes on OSX when $LANG is set to some (but
not all) invalid values due to an invalid result from nl_langinfo
(cherry picked from commit
6d77e07196bfb5dfa4de6f5d80b2619c0643a75e )
Victor Stinner [Fri, 12 May 2017 09:31:08 +0000 (11:31 +0200)]
bpo-30342: Fix sysconfig.is_python_build() on VS9.0 (#1544)
Fix sysconfig.is_python_build() if Python is built with Visual Studio
2008 (VS 9.0).
Victor Stinner [Thu, 11 May 2017 09:30:23 +0000 (11:30 +0200)]
[2.7] bpo-30283: regrtest: backport test_slow_interrupted() and test_coverage() (#1541)
* bpo-30283: regrtest: backport test_coverage()
* Add --coverage option, the option was already described in the doc
* When coverage is used, regrtest now pass all options to runtest()
and calls also accumulate_result() (as done when coverage is not
used).
* bpo-25260: Fix coverage on Windows: remove the list of ignored
directories.
* bpo-30283: regrtest: backport test_slow_interrupted()
* Fix regrtest to report interrupted tests as omitted rather than
failed.
* bpo-25260: Fix coverage on Windows: remove the list of ignored
directories.
* bpo-30283: Fix test_regrtest on Visual Studio 2008
Skip Tools\buildbot\test.bat and PCbuild\rt.bat if Python was not
compiled in PCbuild (but compiled in PC\VS9.0\ for example).
Victor Stinner [Wed, 10 May 2017 23:23:19 +0000 (01:23 +0200)]
bpo-15526: test_startfile changes the cwd (#1537)
Try to fix test_startfile's inability to clean up after itself in
time. Patch by Jeremy Kloth.
Fix the following support.rmtree() error while trying to remove the
temporary working directory used by Python tests:
WindowsError: [Error 32] The process cannot access the file because
it is being used by another process: ...
Original commit:
8a53dbeb7a9d0ae3e446f36e56cf9acfabe443c1
Xiang Zhang [Wed, 10 May 2017 11:20:28 +0000 (19:20 +0800)]
bpo-30281: Fix the default value for stop in PySlice_Unpack() (#1531) (#1480)
Victor Stinner [Wed, 10 May 2017 00:38:28 +0000 (02:38 +0200)]
gitignore: add rules for the PC/ directory (#1514)
[2.7] gitignore: add rules for the PC/ directory
torsava [Tue, 9 May 2017 16:04:29 +0000 (18:04 +0200)]
[2.7] bpo-29243: Fix Makefile with respect to --enable-optimizations (GH-1478) (#1522)
* bpo-29243: Fix Makefile with respect to --enable-optimizations
When using the Profile Guided Optimization (./configure --enable-optimizations)
Python is built not only during `make` but rebuilt again during `make test`,
`make install` and others. This patch fixes the issue.
Note that this fix produces no change at all in the Makefile if configure is
run witout --enable-optimizations.
* !squash.
(cherry picked from commit
a1054c3b0037d4c2a5492e79fc193f36245366c7 )
Victor Stinner [Tue, 9 May 2017 15:06:34 +0000 (17:06 +0200)]
bpo-30283: Backport regrtest features from master to 2.7 (#1516)
* regrtest: add --slowest alias to --slow
* make buildbottest: add --slowest option
* regrtest: add "- " prefix to --slowest output
* regrtest: Fix an outdated comment
* regrtest: replace PermissionError
Replace PermissionError with OSError and check on exc.errno.
PermissionError was added to Python 3.3.
* regrtest: add -3 -tt options to run Python scripts
* regrtest: backport --list-tests option
* regrtest: backport "Tests result: xxx" summary
* regrtest: backport total duration
* regrtest: add timestamp to the progress
* regrtest: describe previous test state
* Add the state of the test: passed, failed, etc.
* If a test took longer than 30 seconds, log its execution time
* regrtest: -jN logs running workers
* regrtest: mention if tests are run in parallel
* regrtest: parallel mode is more verbose during wait
Display running tests every 30 seconds if no test completed in the
meanwhile.
* test_regrtest: fix typo in SubprocessRun
Victor Stinner [Tue, 9 May 2017 11:57:20 +0000 (13:57 +0200)]
[2.7] bpo-30283: Backport test_regrtest from master to 2.7 (#1513)
* bpo-30283: regrtest: add --testdir option
* bpo-30283: Backport _testcapi.raise_signal()
Function used by test_regrtest to simulate an interrupted unit test.
* bpo-30283: Backport test_regrtest from master
Victor Stinner [Tue, 9 May 2017 09:53:16 +0000 (11:53 +0200)]
Fix SyntaxWarning on importing test_inspect (#1512)
Fix the following warning when test_inspect.py is compiled to
test_inspect.pyc:
test_inspect.py:505: SyntaxWarning: tuple parameter unpacking has been removed in 3.x
def spam_deref(a, b, c, d=3, (e, (f,))=(4, (5,)), *g, **h):
Replace also test.test_support import with test.support.
Xiang Zhang [Tue, 9 May 2017 04:18:56 +0000 (12:18 +0800)]
bpo-29990: Fix range checking in GB18030 decoder (#1509)
Victor Stinner [Fri, 5 May 2017 08:28:35 +0000 (10:28 +0200)]
bpo-30258: Fix handling of child error in regrtest (#1477)
Don't stop the worker thread if a child failed.
Victor Stinner [Fri, 5 May 2017 08:27:34 +0000 (10:27 +0200)]
bpo-30265: support.unlink() don't catch any OSError (#1456)
support.unlink() now only ignores ENOENT and ENOTDIR, instead of
ignoring any OSError exception.
Serhiy Storchaka [Fri, 5 May 2017 08:21:45 +0000 (11:21 +0300)]
[2.7] bpo-30243: Fixed the possibility of a crash in _json. (GH-1420) (#1471)
It was possible to get a core dump by using uninitialized
_json objects. Now __new__ methods create initialized objects.
__init__ methods are removed..
(cherry picked from commit
76a3e51a403bc84ed536921866c86dd7d07aaa7e )
Victor Stinner [Fri, 5 May 2017 08:11:55 +0000 (10:11 +0200)]
bpo-30264: ExpatParser now closes the source (#1476)
ExpatParser.parse() of xml.sax.xmlreader now closes the source: close
the file object or the urllib object if source is a string (not an
open file-like object).
Add test_parse_close_source() unit test.
Victor Stinner [Fri, 5 May 2017 07:47:11 +0000 (09:47 +0200)]
Relax test timing (bpo-29861) to avoid sporadic failures (#1120) (#1472)
(cherry picked from commit
685cdb9acc3fca04a9897d88b89771ddfd50e772 )
Benjamin Peterson [Fri, 5 May 2017 06:54:43 +0000 (23:54 -0700)]
Revert "Issue #29094: Offsets in a ZIP file created with extern file object and modes" (#1467)
This reverts commit
0f4ed2cdc6e7887153c481f4c7298bc35e219d84 (though, the tests are retained) and the followup
58ab4b57da2e5db7ff9b9940dd21bbbe4d804957 .
See discussion on bpo-29094.
Victor Stinner [Fri, 5 May 2017 01:14:23 +0000 (03:14 +0200)]
bpo-23404: make touch becomes make regen-all (#1466)
Don't rebuild generated files based on file modification time
anymore, the action is now explicit. Replace "make touch"
with "make regen-all".
Changes:
* Remove "make touch", Tools/hg/hgtouch.py and .hgtouch
* Add a new "make regen-all" command to rebuild all generated files
* Add subcommands to only generate specific files:
- regen-ast: Include/Python-ast.h and Python/Python-ast.c
- regen-grammar: Include/graminit.h and Python/graminit.c
- regen-opcode-targets: Python/opcode_targets.h
* Add PYTHON_FOR_REGEN variable
* pgen is now only built by by "make regen-grammar"
* Add $(srcdir)/ prefix to paths to source files to handle correctly
compilation outside the source directory
Victor Stinner [Thu, 4 May 2017 16:52:26 +0000 (18:52 +0200)]
bpo-30108: Fix test_site setUpModule() (#1460)
Oops, I forgot that PermissionError was introduced in Python 3.3!
Replace PermissionError with OSError and check on errno.
Victor Stinner [Thu, 4 May 2017 16:21:52 +0000 (18:21 +0200)]
bpo-30108: Restore sys.path in test_site (#1197) (#1459)
Add setUpModule() and tearDownModule() functions to test_site to
save/restore sys.path at the module level to prevent warning if the
user site directory is created, since site.addsitedir() modifies
sys.path.
(cherry picked from commit
b85c136903c6d2368162f7c4a58f258c9c69ead0 )
Victor Stinner [Thu, 4 May 2017 16:10:30 +0000 (18:10 +0200)]
Fix test_ftplib warning if IPv6 is not available (#1457)
DummyFTPServer now calls del_channel() on bind() error to prevent the
following warning in TestIPv6Environment.setUpClass():
Warning -- asyncore.socket_map was modified by test_ftplib
Before: {}
After: {3: <test.test_ftplib.DummyFTPServer 127.0.0.1:0 at ...>}
Victor Stinner [Thu, 4 May 2017 16:10:09 +0000 (18:10 +0200)]
test_distutils: test_build_ext uses EnvironGuard (#1458)
Use EnvironGuard on BuildExtTestCase to save/restore os.environ, to fix the
following warning:
Warning -- os.environ was modified by test_distutils
MSVCCompiler.initialize() of distutils.msvc9compiler modifies
os.environ.
Mariatta [Thu, 4 May 2017 01:54:28 +0000 (18:54 -0700)]
[2.7] bpo-28315: Improve code examples in docs (GH-1372) (#1447)
Replace
File "<stdin>", line 1, in ?
with
File "<stdin>", line 1, in <module>.
(cherry picked from commit
8856940cf2e82cb17db2b684cd5732fe658605ca )
Serhiy Storchaka [Wed, 3 May 2017 21:23:50 +0000 (00:23 +0300)]
[2.7] bpo-30236: Backported regrtest options -m and -G. (#1394)
Victor Stinner [Wed, 3 May 2017 16:42:42 +0000 (18:42 +0200)]
Add Appveyor to Python 2.7 branch (#1434)
* Add Appveyor to Python 2.7 branch
* Adapt AppVeyor config for Python 2
* Replace -j0 with -j2: -j0 is ignored on Python 2
* Replace --slowest with --slow
* Remove --timeout option (it was introduced in Python 3)
Victor Stinner [Wed, 3 May 2017 16:04:18 +0000 (18:04 +0200)]
bpo-30257: _bsddb: Fix newDBObject() (#1428)
Don't set cursorSetReturnsNone to DEFAULT_CURSOR_SET_RETURNS_NONE
anymore if self->myenvobj is set.
Fix a GCC warning on the strange indentation.
Victor Stinner [Wed, 3 May 2017 15:28:28 +0000 (17:28 +0200)]
bpo-30258: regrtest handles child process crash (#1431)
Backport the CHILD_ERROR status from master: a test is considered as
failed if a worker process running a test exited with a code
different than zero.
Change also the output: write stdout and stderr of the child process
after the test name, instead of writing it before.
accumulate_result(): don't use time of CHILD_ERROR or INTERRUPTED
results.
Victor Stinner [Wed, 3 May 2017 15:28:10 +0000 (17:28 +0200)]
test_distutils: use EnvironGuard (#1433)
Use EnvironGuard on InstallTestCase and UtilTestCase.
Backport fixes from master to prevent the following warning:
Warning -- os.environ was modified by test_distutils
Victor Stinner [Wed, 3 May 2017 15:27:17 +0000 (17:27 +0200)]
Update .gitignore (#1435)
Ignore more generated files and test data downloaded by tests.
Victor Stinner [Wed, 3 May 2017 14:00:12 +0000 (16:00 +0200)]
bpo-30255: Clip step in _PySlice_Unpack() (#1429)
In PySlice_IndicesEx, clip the step to [-PY_SSIZE_T_MAX,
PY_SSIZE_T_MAX] rather than [PY_SSIZE_T_MIN, PY_SSIZE_T_MAX].
(cherry picked from commit
e6fc7401a92c7b51a80782d8095819b9909a0322 )
Victor Stinner [Wed, 3 May 2017 01:47:44 +0000 (03:47 +0200)]
regrtest: always show before/after of modified env (#1407) (#1409)
Buildbots don't run tests with -vv and so only log "xxx was modified
by test_xxx" which is not enough to debug such random issue. In many
cases, I'm unable to reproduce the warning and so unable to fix it.
Always logging the value before and value after should help to debug
such warning on buildbots.
(cherry picked from commit
ec4b17239d899550be4ee6104b61751bb3c70382 )
(cherry picked from commit
22982350235f8c5821b71661a5616423e1c7fcc0 )
Victor Stinner [Wed, 3 May 2017 01:47:34 +0000 (03:47 +0200)]
bpo-30199: test_ssl closes all asyncore channels (#1381) (#1408)
AsyncoreEchoServer of test_ssl now calls
asyncore.close_all(ignore_all=True) to ensure that
asyncore.socket_map is cleared once the test completes, even if
ConnectionHandler was not correctly unregistered.
Fix the following warning:
Warning -- asyncore.socket_map was modified by test_ssl
Before: {}
After: {6: <test.test_ssl.AsyncoreEchoServer.EchoServer.ConnectionHandler>}
(cherry picked from commit
1dae7450c68bad498e57800387b24cb103c461fa )
Victor Stinner [Tue, 2 May 2017 22:05:45 +0000 (00:05 +0200)]
bpo-30232: Support Git worktree in configure.ac (#1402)
Don't test if .git/HEAD file exists, but only if the .git file (or
directory) exists.
Victor Stinner [Tue, 2 May 2017 21:43:25 +0000 (23:43 +0200)]
bpo-30223: Add global in regrtest main_in_temp_cwd (#1399)
Victor Stinner [Tue, 2 May 2017 19:50:09 +0000 (21:50 +0200)]
bpo-27593: Revise git SCM build info. (#744) (#746) (#1392)
Use --short form of git hash. Use output from "git describe" for tag.
Expected outputs:
1. previous hg
2. previous git
3. updated git
Release (tagged) build:
1. Python 3.7.0a0 (v3.7.0a0:
4def2a2901a5 , ...
2. Python 3.7.0a0 (v3.7.0a0^0:
05f53735c8912f8df1077e897f052571e13c3496 , ...
3. Python 3.7.0a0 (v3.7.0a0:
05f53735c8 , ...
Development build:
1. Python 3.7.0a0 (default:
41df79263a11 , ...
2. Python 3.7.0a0 (master:
05f53735c8912f8df1077e897f052571e13c3496 , ...
3. Python 3.7.0a0 (heads/master-dirty:
05f53735c8 , ...
"dirty" means the working tree has uncommitted changes.
See "git help describe" for more info.
(cherry picked from commit
554626ada769abf82a5dabe6966afa4265acb6a6 )
(cherry picked from commit
ed512cba78af211da4d83cbb7cc533c39176f374 )
Serhiy Storchaka [Tue, 2 May 2017 18:56:52 +0000 (21:56 +0300)]
[2.7] bpo-30223: Fix test_xpickle for Python 2.4. (#1395)
Serhiy Storchaka [Tue, 2 May 2017 15:26:25 +0000 (18:26 +0300)]
[2.7] bpo-30223: Add Lib/test/__main__.py. (#1373)
To unify running tests in Python 2.7 and Python 3, the test
package can be run as a script. This is equivalent to running the
test.regrtest module as a script.
Victor Stinner [Tue, 2 May 2017 14:55:50 +0000 (16:55 +0200)]
bpo-27593: Get SCM build info from git instead of hg (#1327)
Based on commit
5c4b0d063aba0a68c325073f5f312a2c9f40d178 by Ned
Deily, which is based on original patches by Brett Cannon and Steve
Dower.
Remove also the private _Py_svnversion() function and SVNVERSION
variable.
Note: Py_SubversionRevision() and Py_SubversionShortBranch() are
unchanged, they are part of the public API.
Serhiy Storchaka [Mon, 1 May 2017 16:53:45 +0000 (19:53 +0300)]
bpo-30207: Install the Lib/test/support directory. (#1369)
Serhiy Storchaka [Sun, 30 Apr 2017 08:36:58 +0000 (11:36 +0300)]
bpo-30207: Rename test.test_support to test.support. (#1353)
To simplify backports from Python 3, the test.test_support module
was converted into a package and renamed to test.support. The
test.script_helper module was moved into the test.support package.
Names test.test_support and test.script_helper are left as aliases to
test.support and test.support.script_helper.
csabella [Sun, 30 Apr 2017 00:44:04 +0000 (20:44 -0400)]
[2.7] bpo-30208: DOC: fix small typos in IDLE (#1358)
(cherry picked from commit
d9af73330f46d79cc0c56d369f65ebeec3cb5334 )
Serhiy Storchaka [Fri, 28 Apr 2017 17:06:30 +0000 (20:06 +0300)]
[2.7] bpo-30197: Enhance swap_attr() and backport swap_item() in test.test_support. (#1341) (#1347)
(cherry picked from commit
d1a1def7bf221b04dcf3fc3a67aa19aa2f622f83 )
Victor Stinner [Fri, 28 Apr 2017 01:41:40 +0000 (03:41 +0200)]
Fix "make tags" command (#1337)
Backport enhancements from master, commits:
*
9c4bfa6669e220efdd379b9f8e7db32bb4e25e72 : "make tags": remove -t
option of ctags. The option was kept for backward compatibility,
but it was completly removed recently. Patch written by Stéphane
Wirtel.
*
cf0ac6a71ae51249a05521f49c1a0fabbb948488 : Fix "make tags": set
locale to C to call sort
*
8a543c0bc7347d5b333f334d157bf4a7cd33c14a : `make tags` fixes (GH-717)
Victor Stinner [Fri, 28 Apr 2017 00:56:40 +0000 (02:56 +0200)]
Update gitignore from master (#1329)
Ignore more generated files.
Mariatta [Thu, 27 Apr 2017 05:25:40 +0000 (22:25 -0700)]
[2.7] bpo-30182: Use the correct name for ISO in Unicode HOWTO. (GH-1312). (#1315)
(cherry picked from commit
6fde770e4e940c19cd62de0b6aeb77840690843e )
Dong-hee Na [Wed, 26 Apr 2017 16:55:32 +0000 (01:55 +0900)]
[2.7] bpo-30142: Remove "callable" from the 2to3fixer documentation. (GH-1305)
Serhiy Storchaka [Sun, 23 Apr 2017 05:58:09 +0000 (08:58 +0300)]
[2.7] bpo-15718: Document the upper bound constrain on the __len__ return value. (GH-1256). (#1261)
(cherry picked from commit
85157cd89a6edac347a5b6871fcf20c500c6fbbf )
Mariatta [Fri, 21 Apr 2017 03:56:11 +0000 (20:56 -0700)]
[2.7] Add missing .gitignore entries for VS2015 IntelliSense DB (GH-1223). (#1227)
(cherry picked from commit
8e675286a92f33837cfffac5914b5175dac5d573 )
Berker Peksag [Thu, 20 Apr 2017 04:41:01 +0000 (07:41 +0300)]
Remove redundant comma in argparse HOWTO (GH-1141)
Reported by Sean Canavan on docs@p.o.
(cherry picked from commit
8526fb74edf5ac9ca175b7cdcb0d82bb8780d2cf )
cocoatomo [Thu, 20 Apr 2017 03:57:21 +0000 (12:57 +0900)]
bpo-19225: Remove duplicated description for standard warning categories (GH-1068)
Serhiy Storchaka [Wed, 19 Apr 2017 21:48:57 +0000 (00:48 +0300)]
[2.7] [3.5] bpo-30070: Fixed leaks and crashes in errors handling in the parser module. (GH-1131). (GH-1185) (#1189)
(cherry picked from commit
a79f4c219531c05fc8f670c1e4bbf12c081935d3 ).
(cherry picked from commit
952a05e4e2cf082b74a1676a2804f1f43a9b7702 )
Serhiy Storchaka [Wed, 19 Apr 2017 19:34:58 +0000 (22:34 +0300)]
[2.7] bpo-30061: Check if PyObject_Size()/PySequence_Size()/PyMapping_Size() (GH-1096) (GH-1180) (#1183)
raised an error.
(cherry picked from commit
bf623ae8843dc30b28c574bec8d29fc14be59d86 )
(cherry picked from commit
680fea4 )
Christopher Snyder [Wed, 19 Apr 2017 15:45:16 +0000 (11:45 -0400)]
Fix typo in HTTPConnection.set_tunnel description (#1179)
Serhiy Storchaka [Sun, 16 Apr 2017 07:08:47 +0000 (10:08 +0300)]
bpo-29943: Remove the PySlice_GetIndicesEx() macro. (#1050)
Serhiy Storchaka [Sat, 15 Apr 2017 17:11:12 +0000 (20:11 +0300)]
bpo-30074: Fix compile warnings of _PySlice_Unpack and convert missed (#1154)
PySlice_GetIndicesEx in _ctypes.c.
Serhiy Storchaka [Sat, 15 Apr 2017 15:35:46 +0000 (18:35 +0300)]
bpo-30011: Fixed race condition in HTMLParser.unescape(). (#1140)
Xiang Zhang [Sat, 15 Apr 2017 05:18:22 +0000 (13:18 +0800)]
bpo-30068: add missing iter(self) in _io._IOBase.readlines when hint is present (#1152)
Michael Seifert [Sat, 15 Apr 2017 02:04:22 +0000 (04:04 +0200)]
[2.7] bpo-30059: Include Py_Ellipsis in C API documentation (GH-1018) (GH-1147)
Mariatta [Sat, 15 Apr 2017 01:24:22 +0000 (18:24 -0700)]
[2.7] bpo-29738: Fix memory leak in _get_crl_dp (GH-526) (GH-1144)
* Remove conditional on free of `dps`, since `dps` is now allocated for
all versions of OpenSSL
* Remove call to `x509_check_ca` since it was only used to cache
the `crldp` field of the certificate
CRL_DIST_POINTS_free is available in all supported versions of OpenSSL
(recent 0.9.8+) and LibreSSL.
(cherry picked from commit
2849cc34a8db93d448a62d69c462402347b50dcb )
Serhiy Storchaka [Thu, 13 Apr 2017 16:47:18 +0000 (19:47 +0300)]
bpo-30021: Add examples for re.escape(). (#1048) (#1118)
And fix the parameter name.
(cherry picked from commit
8fc7bc2b7631ee819ee614e47b6f44bacebe1574 )
Serhiy Storchaka [Wed, 12 Apr 2017 13:00:14 +0000 (16:00 +0300)]
bpo-30027: Fix Py3k warnings in test_xml_etree. (#1065)
Mariatta [Mon, 10 Apr 2017 17:27:50 +0000 (10:27 -0700)]
[2.7] bpo-29521: Fix two minor documentation build warnings (GH-41) (GH-670)
(cherry picked from commit
3d707be950b387552585451071928e7b39cdfa53 )
Mariatta [Sun, 9 Apr 2017 22:16:06 +0000 (15:16 -0700)]
[2.7] Correct typo in configparser.rst (GH-1012) (GH-1026)
(cherry picked from commit
01fa9ae5460b00bf1ced500c797176ebd3fb060d )
Nick Coghlan [Sun, 9 Apr 2017 10:57:29 +0000 (20:57 +1000)]
bpo-29506: Clarify deep copy note in copy module
The reference to administrative data was confusing to readers,
so this simplifies the note to explain that deep copying may copy
more then you intended, such as data that you expected to be
shared between copies.
Patch by Sanyam Khurana.
Nick Coghlan [Sun, 9 Apr 2017 08:32:48 +0000 (18:32 +1000)]
Issue #29798: Handle git worktree in patchcheck (#1057)
The original attempted fix missed an `isdir()` call in
`get_base_branch()`.
Serhiy Storchaka [Sat, 8 Apr 2017 08:48:57 +0000 (11:48 +0300)]
bpo-27867: Expand the PySlice_GetIndicesEx macro. (#1023) (#1046)
(cherry picked from commit
b879fe8 )
cocoatomo [Sat, 8 Apr 2017 06:19:24 +0000 (15:19 +0900)]
[2.7] bpo-19225: Lack of c api exceptions doc (#964)
* Keep the c-api exception doc up-to-date
cherry-pick'ed from
ec1f5df ..
e3d6db3 and fix conflict
Eric Wieser [Thu, 6 Apr 2017 17:36:43 +0000 (18:36 +0100)]
Fix references within buffer protocol docs (#1016)
Mariatta [Tue, 4 Apr 2017 12:49:31 +0000 (14:49 +0200)]
remove merge=union attribute for Misc/NEWS (GH-460) (GH-989)
(cherry picked from commit
060d2d776a29341c079cce37220324f9775140ba )
Victor Stinner [Mon, 3 Apr 2017 16:11:22 +0000 (18:11 +0200)]
bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. (#462) (#973)
* bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS
Skip some tests of select.poll when running on macOS due to unresolved
issues with the underlying system poll function on some macOS versions.
(cherry picked from commit
de04644627f82d9dc48b3423def7ff5b4aa1926a )
Ivan Mokeev [Mon, 3 Apr 2017 11:06:34 +0000 (14:06 +0300)]
Fix socket leaks (#351)
* Fix socket leaks
* Fixed sockets leak
Serhiy Storchaka [Sun, 2 Apr 2017 17:37:03 +0000 (20:37 +0300)]
bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#903) (#963)
(cherry picked from commit
576def096ec7b64814e038f03290031f172886c3 )
(cherry picked from commit
a6b4e1902250d6f28ca6d083ce1c8d7e9b91974b )
Serhiy Storchaka [Sun, 2 Apr 2017 13:55:43 +0000 (16:55 +0300)]
bpo-15083: Convert ElementTree doctests to unittests. (#906)
INADA Naoki [Fri, 31 Mar 2017 06:53:25 +0000 (15:53 +0900)]
bpo-29952: Use usual terminology of dict (GH-924)
s/keys and elements/keys and values/
(cherry picked from commit
cdcac039fb447f2ab04efcacbe663751bb2cb4ec )
Mandeep Singh [Thu, 30 Mar 2017 20:39:06 +0000 (02:09 +0530)]
[2.7] bpo-22392: Improve documentation for __getinitargs__ (GH-899)
T. Wouters [Thu, 30 Mar 2017 19:49:22 +0000 (12:49 -0700)]
bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#913)
Fix the use of recursion in itertools.chain.from_iterable. Using recursion
is unnecessary, and can easily cause stack overflows, especially when
building in low optimization modes or with Py_DEBUG enabled.
(cherry picked from commit
5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14 )
Serhiy Storchaka [Thu, 30 Mar 2017 17:32:18 +0000 (20:32 +0300)]
bpo-29935: Fixed error messages in the index() method of tuple and list (#887) (#907) (#910)
when pass indices of wrong type.
(cherry picked from commit
d4edfc9abffca965e76ebc5957a92031a4d6c4d4 )
(cherry picked from commit
bf4bb2e43030661e568d5d4b046e8b9351cc164c )
Senthil Kumaran [Thu, 30 Mar 2017 05:29:12 +0000 (22:29 -0700)]
bpo-29917: DOC: Remove link from PyMethodDef (#890) (#896)
(cherry picked from commit
c3c7ef088583cc12bd218138036d1edb6de9c63f )
Mariatta [Wed, 29 Mar 2017 21:10:13 +0000 (14:10 -0700)]
bpo-16011: clarify that 'in' always returns a boolean value (GH-152) (GH-883)
(cherry picked from commit
0ae7c8bd614d3aa1fcaf2d71a10ff1148c80d9b5 )
INADA Naoki [Tue, 28 Mar 2017 16:50:48 +0000 (01:50 +0900)]
bpo-29643: Fix check for --enable-optimizations (GH-873)
The presence of the ``--enable-optimizations`` flag is indicated by the
value of ``$enableval``, but the configure script was checking ``$withval``,
resulting in the ``--enable-optimizations`` flag being effectively ignored.
(cherry picked from commit
8cea5929f52801b0ce5928b46ef836e99a24321a )
Brett Cannon [Mon, 27 Mar 2017 23:47:35 +0000 (16:47 -0700)]
Drop the standard gcc test build on Travis (GH-853) (GH-861)
Instead have gcc be used for the coverage build so gcc is exercised in at least one place.
(cherry picked from commit
ad2f9e2c8a0b44b3e6aec9d28ba59e13239236f7 )
cocoatomo [Mon, 27 Mar 2017 02:59:14 +0000 (11:59 +0900)]
bpo-29888: Fix the link referring to "Python download page" (GH-823)
Antoine Pitrou [Fri, 24 Mar 2017 15:03:46 +0000 (16:03 +0100)]
bpo-29861: release references to multiprocessing Pool tasks (#743) (#803)
* bpo-29861: release references to multiprocessing Pool tasks (#743)
* bpo-29861: release references to multiprocessing Pool tasks
Release references to tasks, their arguments and their results as soon
as they are finished, instead of keeping them alive until another task
arrives.
* Comments in test
(cherry picked from commit
8988945cdc27ffa86ba8c624e095b51c459f5154 )
* Fix Misc/NEWS ?
cocoatomo [Wed, 22 Mar 2017 19:12:36 +0000 (04:12 +0900)]
Insert a missing semicolon in sgmllib documentation (#772)
Xiang Zhang [Wed, 22 Mar 2017 07:22:44 +0000 (15:22 +0800)]
fix function name in tabnanny documentation (GH-764)
Xiang Zhang [Wed, 22 Mar 2017 06:32:52 +0000 (14:32 +0800)]
bpo-29876: fix DECREF for NULL value in subelement() (GH-760)
Xiang Zhang [Wed, 22 Mar 2017 04:46:14 +0000 (12:46 +0800)]
bpo-29874: fix INCREF for possible NULL values in select_select() (GH-758)
Xiang Zhang [Wed, 22 Mar 2017 04:25:51 +0000 (12:25 +0800)]
bpo-29873: fix INCREF for possible NULL value in element_getattr() (GH-757)
Mariatta [Mon, 20 Mar 2017 03:55:34 +0000 (20:55 -0700)]
bpo-29856: Fix typo in curses documentation (GH-730) (GH-733)
From Shifted Dxit -> Shifted Exit in Doc/library/curses.rst
(cherry picked from commit
64508780d72769e4c7afc67a511c057261c578f6 )
Brett Cannon [Sun, 19 Mar 2017 17:05:18 +0000 (10:05 -0700)]
Drop C++ header compatibility test (#718) (#721)
The $CXX environment variable is not exported under the 'c' language on Travis.
(cherry picked from commit
77ed11552da3e01dd235b7d68988076866b1f604 )
Brett Cannon [Fri, 17 Mar 2017 22:46:32 +0000 (15:46 -0700)]
[2.7] Combine the C++ header CI build into the main C build (GH-697) (#706)
This will eliminate one of the builds in Travis, allowing for CI overall to complete faster.
(cherry picked from commit
993d4b3440f2282976901ce66879037c4443868a )
Serhiy Storchaka [Tue, 14 Mar 2017 05:29:33 +0000 (07:29 +0200)]
bpo-27880: Fixed integer overflow in cPickle when pickle large strings or (#662)
too many objects.
Xiang Zhang [Mon, 13 Mar 2017 02:41:38 +0000 (10:41 +0800)]
fix parameter names in ftplib documentation (GH-656)
Nick Coghlan [Sun, 12 Mar 2017 10:03:45 +0000 (20:03 +1000)]
bpo-29798: Handle git worktree in `make patchcheck` (#629) (#635)
In git worktree directories, `.git` is a configuration
file rather than a subdirectory
(cherry picked from commit
6a6d090612dd7deaac2bc0399fad743e5e2db606 )
Nick Coghlan [Sun, 12 Mar 2017 09:34:16 +0000 (19:34 +1000)]
[2.7] bpo-29656: Handle PR branches in 'make patchcheck' (#302) (#628)
Additional changes needed to backport:
- dropped legacy SVN support from patchcheck
- use subprocess.PIPE to silence expected error output
- don't try to use subprocess.Popen as a context manager
- don't try to pass a keyword argument to str.split()
(cherry picked from commit
482f7a274fa52b7ba34ff308cd9acdcac9f41ba5 )
cocoatomo [Thu, 9 Mar 2017 15:54:27 +0000 (00:54 +0900)]
Insert the line which should not have been deleted (#581)
see [bpo-29772](http://bugs.python.org/issue29772)
Serhiy Storchaka [Thu, 9 Mar 2017 08:52:50 +0000 (10:52 +0200)]
[2.7] bpo-29768: Fixed compile-time check for expat version. (#577)
(cherry picked from commit
22e707fa04476710ba5cc7e2206e4ac66743931b )
svelankar [Thu, 9 Mar 2017 05:27:48 +0000 (00:27 -0500)]
Issue #29682:Possible missing NULL check in pyexpat (#573)