summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 2.7.14 final version bumpsv2.7.14Benjamin Peterson2017-09-163-5/+16
|
* bpo-31170: Update libexpat from 2.2.3 to 2.2.4 (#3315)Victor Stinner2017-09-0620-58/+584
| | | | | | | | | | | | | | | | Fix copying of partial characters for UTF-8 input (libexpat bug 115): https://github.com/libexpat/libexpat/issues/115 (cherry picked from commit 759e30ec47048cb9835c62aaeac48748c8151390) The standard header stdbool.h is not available with old Visual Studio compilers Cherry-picked from libexpat b4b89c2ab0cc5325a41360c25ef9d2ccbe617e5c. expat: Add artificial scopes in xmltok.c utf8_toUtf8() to fix c89 compilation. Cherry-picked from libexpat commit e0b290eb3d8f4c4b45137a7d7f4f8db812145bd2
* version bumps for 2.7.14rc1v2.7.14rc1Benjamin Peterson2017-08-263-9/+9
|
* update pydoc topicsBenjamin Peterson2017-08-261-80/+13577
|
* coalesce blurbs for 2.7.14rc1Benjamin Peterson2017-08-2614-47/+149
|
* bpo-31258: test_urllib2_localnet uses addCleanup(server.stop) (#3184)Victor Stinner2017-08-221-90/+57
| | | | Use self.addCleanup(self.server.stop) to stop the HTTP server. Some tests didn't stop the server like test_https().
* bpo-31258: test_signal: call waitpid() to prevent zombie process (#3183)Victor Stinner2017-08-221-0/+3
|
* bpo-30871: Add test.pythoninfo (#3174) (#3175)Victor Stinner2017-08-225-1/+440
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bpo-30871: Add test.pythoninfo (#3075) * Add Lib/test/pythoninfo.py: script collecting various informations about Python to help debugging test failures. * regrtest: remove sys.hash_info and sys.flags from header. * Travis CI, Appveyor: run pythoninfo before tests (cherry picked from commit b907abc88589f7bea52c5afe172ececc6edcda70) * bpo-30871: pythoninfo: add expat and _decimal (#3121) * bpo-30871: pythoninfo: add expat and _decimal * Remove _decimal.__version__ The string is hardcoded, not really interesting. (cherry picked from commit f6ebd838f00b4c211c72d85ee49749e910cd3afe) * bpo-30871: Add "make pythoninfo" (#3120) (cherry picked from commit a3a01a2fceab2188b282ab9911f79c99a4c32273) * bpo-30871: pythoninfo: more sys, os, time data (#3130) * bpo-30871: pythoninfo: more sys, os, time data PythonInfo now converts types other than intger to string by default. * fix typo (cherry picked from commit ad7eaed54382b346784e51a6f0122ce81e8842b5) * bpo-31231: Fix pythoninfo in Travis config (#3134) bpo-31231, bpo-30871: Replace "./python -m test.pythoninfo" with "make pythoninfo", since macOS uses ./python.exe. (cherry picked from commit 92b1f90143286385c0ff5be98d3721b90580a912) (cherry picked from commit 29d007bb670b486788f73c2d742b0ad0b679ff13)
* regrtest: fix test to choose if header should be displayed (#3172)Victor Stinner2017-08-211-12/+12
| | | Check "tests" before its value is replaced.
* bpo-30263: regrtest: add system load average (#3165)Victor Stinner2017-08-212-4/+34
| | | Add the CPU count in the header.
* bpo-30947: Update libexpat from 2.2.1 to 2.2.3 (#3106) (#3145)Victor Stinner2017-08-1815-102/+730
| | | | | | | | | | | | | | | | | | * bpo-30947: Update libexpat from 2.2.1 to 2.2.3 * Add NEWS entry * Add new loadlibrary.c * expat_external.h: restore include "pyexpatns.h" * PCbuild: add expat/loadlibrary.c * Define XML_POOR_ENTROPY to compile expat Python 2.7 backport: add expat/loadlibrary.c to PC/VS9.0/ project files (_elementtree and pyexpat). (cherry picked from commit 93d0cb58b4da2a88c56f472c6c19491cc7a390df)
* gitignore: add more rules from master for Windows (#3148)Victor Stinner2017-08-181-0/+7
|
* Fix broken `Show Source` links on documentation pages (GH-3113) (GH-3128)Mariatta2017-08-181-1/+1
| | | | | | | The `Show Source` was broken because of a change made in sphinx 1.5.1 In Sphinx 1.4.9, the sourcename was "index.txt". In Sphinx 1.5.1+, it is now "index.rst.txt". (cherry picked from commit b9ff498793611d1c6a9b99df464812931a1e2d69)
* [2.7] bpo-31221: patchcheck ignores external libraries (#3109) (#3118)Victor Stinner2017-08-171-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | * bpo-31221: patchcheck ignores external libraries (#3109) Tools/scripts/patchcheck.py now ignores changes in directories which are copies of external libraries: * Modules/_ctypes/libffi_msvc/ * Modules/_ctypes/libffi_osx/ * Modules/_decimal/libmpdec/ * Modules/expat/ * Modules/zlib/ Drop also support for Mercurial, since CPython migrated to Git. Exclude also libmpdec patchcheck: exclude also libffi_osx and libffi_msvc (cherry picked from commit 4a347ce426fe7381885703d9074d7a6b3aeb2f2b) * Exclude also Modules/_ctypes/libffi on Python 2.7 * Remove _decimal/libmpdec, not in Python 2.7
* Update the language selection in the docs language switch. (GH-3114) (#3117)Julien Palard2017-08-171-1/+1
| | | | Change the option for `Français` into `French` to be consistent with the other language selections that are already in English. (cherry picked from commit b616b972999cdd5fe54ef8a43c131a27ca538dee)
* bpo-31069, test_multiprocessing: Fix dangling process (#3103) (#3105)Victor Stinner2017-08-161-1/+2
| | | | | Fix a warning about dangling processes in test_rapid_restart() of _test_multiprocessing: join the process. (cherry picked from commit 17657bb9458ff8f8804b7637d61686a68f4b9471)
* [2.7] bpo-30714: ALPN changes for OpenSSL 1.1.0f (#3094)Christian Heimes2017-08-153-4/+8
| | | | | | | | | | | OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that. The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN callback can pretend to not been set. See https://github.com/openssl/openssl/pull/3158 for more details Signed-off-by: Christian Heimes <christian@python.org> (cherry picked from commit a5c1bab352671e043645163ca50c5211aa657acd)
* bpo-31159: fix language switch regex on unknown yet built languages. … ↵Julien Palard2017-08-131-2/+3
| | | | | | | | | | | | | | | | | (#3051) (#3081) * bpo-31159: fix language switch regex on unknown yet built languages. (#3039) This fix a regex issue (a missing non-matching group around an 'or' list) and the specific possible case where a translation is built but not yet in known by the picker, but not explicitly listing possible languages in the regex. (cherry picked from commit 122081deef86174beee965be1207fa46ea23533d) * bpo-31149: Doc: Add Japanese to the language switcher. (#3028) (cherry picked from commit c82b7f332aff606af6c9c163da75f1e86514125e) (cherry picked from commit e8e7fba0b24582959feca9c31f2a72fc0251f83d)
* bpo-31067: test_subprocess calls reap_children() (#2931) (#3073)Victor Stinner2017-08-111-0/+2
| | | | | test_subprocess now also calls reap_children() in tearDown(), not only on setUp(). (cherry picked from commit cc42c121eb5346f673247f95dac575aadb77d66c)
* bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055) (#3071)Victor Stinner2017-08-112-33/+48
| | | | | | | | | | | | | | The current test_child_terminated_in_stopped_state() function test creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and then crash (SIGSEGV). The problem is that calling os.waitpid() in the parent process is not enough to close the process: the child process remains alive and so the unit test leaks a child process in a strange state. Closing the child process requires non-trivial code, maybe platform specific. Remove the functional test and replaces it with an unit test which mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to test the WIFSTOPPED() path. (cherry picked from commit 7b7c6dcfff6a35333988a3c74c895ed19dff2e09)
* [2.7] bpo-31160: Backport reap_children fixes from master to 2.7 (#3063)Victor Stinner2017-08-102-0/+11
| | | | | | | | | | | | | | * bpo-31160: regrtest now reaps child processes (#3044) Add a post_test_cleanup() function which currently only calls support.reap_children(). (cherry picked from commit e3510d74aacc477c30f42f2b941d69689bbc478e) * bpo-31160: test_tempfile: Fix reap_children() warning (#3056) TestRandomNameSequence.test_process_awareness() now calls os.waitpid() to avoid leaking a zombie process. (cherry picked from commit 6c8c2943d996b59a48d331f61f22cbe72933910e)
* PCbuild: downgrade pcbuild.sln to support VS 2010 (#3031)Victor Stinner2017-08-101-1/+1
| | | | | bpo-31133: Downgrade PCbuild/pcbuild.sln from format version 12.00 to 11.00 to support Visual Studio 2010 and newer, not only VS 2013 and newer.
* [2.7] bpo-31150: Wait for child process in test_forkinthread to avoid thread ↵Ammar Askar2017-08-091-0/+2
| | | | reaped warnings (#3042)
* ttk: fix LabeledScale and OptionMenu destroy() method (#3026)Victor Stinner2017-08-082-2/+11
| | | | | | | | bpo-31135: Call the parent destroy() method even if the used attribute doesn't exist. The LabeledScale.destroy() method now also explicitly clears label and scale attributes to help the garbage collector to destroy all widgets.
* bpo-31045: Language switch (#2652) (#3024)Julien Palard2017-08-084-71/+151
| | | | | | | | | | | | | | | | | | | * Doc: Indicate the language * Renaming version_switcher to switchers (to add language_switcher). * Adding language switch. * Doc switchers: Enhance readability of regex parsing versions. * Doc switchers: Desambiguate the need of a replace(/\/+$/g, '') by proper naming. * Doc switchers: py3k can't reach js, it's redirected server-side by nginx. * Doc switchers: Examples matching actual regexes. * Doc switchers: Better fallback on unexisting translated version. (cherry picked from commit dff9b5f9d62aa0b23f8a255867d09d11890efd1b)
* [2.7] bpo-31107: Fix copyreg mangled slot names calculation. (GH-2989). (#3004)Shane Harvey2017-08-054-1/+18
| | | (cherry picked from commit c4c9866064f03646c686d7e08b00aeb203c35c19)
* Fix a shadow-compatible-local warning (#2182)Yuan Chao Chou2017-08-042-138/+138
| | | | Change the shadowing naming, 'value' (Python-ast.c:3814), to 'val' to prevent the variables from being misused.
* bpo-27470: Improve doc for commandline -3 optionSubhendu Ghosh2017-08-041-1/+3
| | | | | | Mention that it warns about features that are significantly changed in Python 3 and can’t be detected using static code analysis. Link to Porting Python 2 Code to Python 3 doc
* bpo-29902: Emit a Py3k deprecation warning when pickling or copying (#2823)Serhiy Storchaka2017-08-025-14/+103
| | | | | | some builtin and extension objects that don't support pickling explicitly and are pickled incorrectly by default (like memoryview or staticmethod).
* Remove .mention-bot (GH-2923) (GH-2972)Mariatta2017-08-011-3/+0
| | | (cherry picked from commit e1e60bd95c376f9b18cbaf9481364281c6cc1bc7)
* bpo-25910: Update LICENSE (GH-2873) (GH-2969)Mariatta2017-08-011-6/+5
| | | | Use the copy provided in https://bugs.python.org/issue25910GH-msg295200 (cherry picked from commit 8474d87165593bac2bc231287f42c4cff3fd6aaf)
* bpo-29519: weakref spewing exceptions during interp finalization (#2958)INADA Naoki2017-07-312-2/+4
| | | (cherry pick from 9cd7e17640a49635d1c1f8c2989578a8fc2c1de6)
* Fix trivial typo in multiprocessing documentation (GH-2930) (GH-2942)Mariatta2017-07-291-1/+1
| | | (cherry picked from commit 6fcb69dad579cc9a7dc15eabead43b6c37464f8c)
* [2.7] bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915) (#2918)Victor Stinner2017-07-271-0/+4
| | | | | | | | | | | * bpo-31044: Skip test_posix.test_makedev() on FreeBSD (#2915) There is a bug in FreeBSD CURRENT with 64-bit dev_t. Skip the test if dev_t is larger than 32-bit, until the bug is fixed in FreeBSD CURRENT. (cherry picked from commit 12953ffe12ac781332b384c36b25d12216b1db62) * Fix syntax for Python 2.7
* bpo-31028: Fix test_pydoc when run directly (#2864) (#2911)Victor Stinner2017-07-271-1/+1
| | | | | | | | | | | * bpo-31028: Fix test_pydoc when run directly Fix get_pydoc_link() of test_pydoc to fix "./python Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent relative directories. * Use realpath() instead of abspath() (cherry picked from commit fd46561167af6cd697191dd7ebb8c2fef5ad6493)
* bpo-30980: Fix double close in asyncore.file_wrapper (#2789) (#2900)Nir Soffer2017-07-262-1/+18
| | | | | | | | | | | | | | * bpo-30980: Fix close test to fail test_close_twice was not considering the fact that file_wrapper is duping the file descriptor. Closing the original descriptor left the duped one open, hiding the fact that close protection is not effective. * bpo-30980: Fix double close protection Invalidated self.fd before closing, handling correctly the case when os.close raises. * bpo-30980: Fix fd leak introduced in the fixed test
* bpo-30778: Skip test_bsddb3 on Windows XP (#2877)Victor Stinner2017-07-261-0/+4
| | | | | | * bpo-30778: Skip test_bsddb3 on Windows XP * Fix if, don't skip Windows Vista
* bpo-31019: Fix multiprocessing.Process.is_alive() (#2875) (#2882)Victor Stinner2017-07-261-2/+8
| | | | | | | multiprocessing.Process.is_alive() now removes the process from the _children set if the process completed. The change prevents leaking "dangling" processes. (cherry picked from commit 2db64823c20538a6cfc6033661fab5711d2d4585)
* [3.6] bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027) (#2881) (#2883)Victor Stinner2017-07-262-1/+4
| | | | | | | | | | | | | | | | | | | * bpo-30595: Fix multiprocessing.Queue.get(timeout) (#2027) multiprocessing.Queue.get() with a timeout now polls its reader in non-blocking mode if it succeeded to aquire the lock but the acquire took longer than the timeout. Co-Authored-By: Grzegorz Grzywacz <grzgrzgrz3@gmail.com> (cherry picked from commit 1b7863c3b6519c6e134c28cab8b8af0dea43e375) * bpo-30595: Increase test_queue_feeder_donot_stop_onexc() timeout (#2148) _test_multiprocessing.test_queue_feeder_donot_stop_onexc() now uses a timeout of 1 second on Queue.get(), instead of 0.1 second, for slow buildbots. (cherry picked from commit 8f6eeaf21cdf4aea25fdefeec814a1ce07453fe9) (cherry picked from commit e42339d3a08a8fde3349722def85d7a8e49899be)
* [2.7] bpo-30119: fix ftplib.FTP.putline() to throw an error for a illegal ↵Dong-hee Na2017-07-263-0/+7
| | | | command (#1214) (#2894)
* bpo-30304: Improve TestCase.assertMultiLineEqual docs (GH-2847)Aditya Hase2017-07-251-1/+1
| | | Mention that TestCase.assertMultiLineEqual method is used by default when comparing Unicode string when comparing Unicode strings with assertEqual.
* test_bsddb3 tolerates smaller timeout on Windows (#2840)Victor Stinner2017-07-241-2/+9
| | | | | bpo-30850: On Windows, test04_lock_timeout2() now tolerates 50 ms whereas 100 ms is expected. The lock sometimes times out after only 58 ms. Windows clocks have a bad resolution and bad accuracy.
* Backport Mac installer fixes for git-based workflow (#2837)Ned Deily2017-07-241-10/+25
|
* bpo-29572: Update macOS installer build to OpenSSL 1.0.2k (#457) (#2836)Ned Deily2017-07-242-4/+4
| | | (cherry picked from commit cfcd76777e35c83d548d8736f5d7dc92fe56d806)
* [2.7] bpo-30964: Mention ensurepip in package installation docs (GH-2795)Nicholas2017-07-212-0/+12
| | | | | | | | Adds a new 'Pip not installed' section that covers running `ensurepip` manually, and also references the relevant section of the Python Packaging User Guide. (cherry picked from commit b3527bfefd7a0188d43a2d7515ac6addd97a8202)
* bpo-30822: regrtest: fix -u extralargefile (#2788)Victor Stinner2017-07-212-4/+12
| | | | Fix also regrtest command line parser to allow passing -u extralargefile to run test_zipfile64.
* [2.7] Fix typo in Turtle Docs: yingyang -> yinyang (GH-2770) (GH-2780)Mariatta2017-07-201-1/+1
| | | (cherry picked from commit fff2a21057b98732562098e3bdd65980551f0135)
* Update doc download files size estimates. (#2774)Ned Deily2017-07-201-8/+8
|
* [2.7] bpo-30883: Use pythontest.net instead of debian.org in test_urllib2net ↵Ammar Askar2017-07-191-3/+3
| | | | (GH-2755)
* [2.7] bpo-30911: Add tests for bad boolean arguments for accelerated json ↵Serhiy Storchaka2017-07-160-0/+0
| | | | | | (GH-2690) (#2729) encoder and decoder. (cherry picked from commit d3aaa2f1496aae0809c9ec9623fa528d3a2c16c2)