summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* closes bpo-34581 : Conditionalize use of __pragma in Modules/socketmodule.c. ↵Miss Islington (bot)2018-09-042-2/+6
| | | | | | | (GH-9067) (cherry picked from commit 874809ea389e6434787e773a6054a08e0b81f734) Co-authored-by: Erik Janssens <erik.janssens@conceptive.be>
* bpo-34563: Fix for invalid assert on big output of multiprocessing.Process ↵Miss Islington (bot)2018-09-043-9/+10
| | | | | | | | (GH-9027) (GH-9064) Fix for invalid assert on big output of multiprocessing.Process. (cherry picked from commit 266f4904a222a784080e29aad0916849e507515d) Co-authored-by: Alexander Buchkovsky <olex.buchkovsky@gmail.com>
* [3.7] bpo-26544: Get rid of dependence from distutils in platform. ↵Serhiy Storchaka2018-09-042-1/+66
| | | | | | (GH-8356). (GH-8970) (cherry picked from commit 7d81e8f5995df6980a1a02923e224a481375f130)
* bpo-34530: Fix distutils find_executable() (GH-9049)Miss Islington (bot)2018-09-043-3/+50
| | | | | | | distutils.spawn.find_executable() now falls back on os.defpath if the PATH environment variable is not set. (cherry picked from commit 39487196c87e28128ea907a0d9b8a88ba53f68d5) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* bpo-26901: Fix the Argument Clinic test suite (GH-8879) (GH-9048)Miss Islington (bot)2018-09-041-8/+19
| | | | | | | | | | | | | * Fix Tools/clinic/clinic_test.py: add missing FakeClinic.destination_buffers attribute and pass a file argument to Clinic(). * Rename Tools/clinic/clinic_test.py to Lib/test/test_clinic.py: add temporary Tools/clinic/ to sys.path to import the clinic module. Co-Authored-By: Pablo Galindo <pablogsal@gmail.com> (cherry picked from commit 65fc98e7b1f62c2e621f04780a3a77c3498cc195) Co-authored-by: Victor Stinner <vstinner@redhat.com>
* _Py_CoerceLegacyLocale() restores LC_CTYPE on fail (GH-9044) (GH-9046)Victor Stinner2018-09-031-1/+13
| | | | | | bpo-34544: If _Py_CoerceLegacyLocale() fails to coerce the C locale, restore the LC_CTYPE locale to the its previous value. (cherry picked from commit 8ea09110d413829f71d979d8c7073008cb87fb03)
* Fix struct sequence glossary entry grammar (GH-9030)Miss Islington (bot)2018-09-011-1/+1
| | | | | | | | ... by removing a superfluous "either". Reported by Никита Люшненко on docs@. (cherry picked from commit 98b976a2f82ba5f50cf6846338f644ca6c64f47d) Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
* closes bpo-34555: Fix incorrectly nested test for HAVE_LINUX_VM_SOCKETS_H ↵Miss Islington (bot)2018-09-012-24/+27
| | | | | | | (GH-9016) (cherry picked from commit 2d7102e726e973ab2d307aa9748c7ec433677877) Co-authored-by: Thomas Herzog <thomas@mcduke.net>
* Fix typo in typing.py module docstring (GH-9014)Miss Islington (bot)2018-09-011-1/+1
| | | | | | "explicitelly" → "explicitly" (cherry picked from commit 5265b3a98b376684e361b62d0728483b26f493f2) Co-authored-by: Tim McNamara <code@timmcnamara.co.nz>
* bpo-34558: Add missing parentheses in _aix.py (GH-9017)Miss Islington (bot)2018-08-312-1/+2
| | | | | | p.wait() (cherry picked from commit 172a71f19bb5e9624651850b315f403c460b9699) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
* bpo-34007: Skip traceback tests if the Program Counter is not available. ↵Miss Islington (bot)2018-08-311-0/+9
| | | | | | | | | | | | (GH-9018) Sometimes some versions of the shared libraries that are part of the traceback are compiled in optimised mode and the Program Counter (PC) is not present, not allowing gdb to walk the frames back. When this happens, the Python bindings of gdb raise an exception, making the test impossible to succeed. (cherry picked from commit f2ef51f8bec525b21e52988880c8a029642795ed) Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
* bpo-34062: Add missing launcher argument and make behavior consistent ↵Miss Islington (bot)2018-08-312-8/+12
| | | | | | | | | between short and long arguments (GH-8827) Added previously missing "--list" argument. Made "--list" and "--list-paths" behavior consistent with the corresponding "-0" and "-0p" arguments. (cherry picked from commit aada63b20ec64bbfc4f2fb0718fc563eedbdd36a) Co-authored-by: Brendan Gerrity <brerrity@gmail.com>
* Add VSTS status badge to readme (GH-8958)Steve Dower2018-08-311-0/+12
|
* [3.7] bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986) (GH-8987)Victor Stinner2018-08-295-26/+60
| | | | | | | | | | | | | | | * bpo-34485: stdout uses surrogateescape on POSIX locale (GH-8986) Standard streams like sys.stdout now use the "surrogateescape" error handler, instead of "strict", on the POSIX locale (when the C locale is not coerced and the UTF-8 Mode is disabled). Add tests on sys.stdout.errors with LC_ALL=POSIX. Fix the error handler of standard streams like sys.stdout: PYTHONIOENCODING=":" is now ignored instead of setting the error handler to "strict". (cherry picked from commit 315877dc361d554bec34b4b62c270479ad36a1be)
* bpo-34485: Fix _Py_InitializeCore() for C locale coercion (GH-8979) (GH-8981)Victor Stinner2018-08-292-13/+19
| | | | | | | | | | * _Py_InitializeCore() now sets the LC_CTYPE locale to the user preferred locale before checking if the C locale should be coerced or not in _PyCoreConfig_Read(). * Fix pymain_read_conf(): remember if the C locale has been coerced when the configuration should be read again if the encoding has changed. (cherry picked from commit 2c8ddcf4f14f3e4c87a6fe6678ab5ad09130c6ab)
* bpo-34527: POSIX locale enables the UTF-8 Mode (GH-8972) (GH-8974)Victor Stinner2018-08-285-13/+39
| | | | | | | | | | | | * The UTF-8 Mode is now also enabled by the "POSIX" locale, not only by the "C" locale. * On FreeBSD, Py_DecodeLocale() and Py_EncodeLocale() now also forces the ASCII encoding if the LC_CTYPE locale is "POSIX", not only if the LC_CTYPE locale is "C". * test_utf8_mode.test_cmd_line() checks also that the command line arguments are decoded from UTF-8 when the the UTF-8 Mode is enabled with POSIX locale or C locale. (cherry picked from commit 5cb258950ce9b69b1f65646431c464c0c17b1510)
* bpo-34171: Fix test_trace. (GH-8940) (GH-8951)Miss Islington (bot)2018-08-281-3/+6
| | | | | | | Remove "trace.cover" left from previous test runs before testing that it is no longer created. (cherry picked from commit b44a1d4f71daf4edb948b9878f82a60891e4a2e1) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-33635: Handling Bad file descriptor in Path.is_file and related. (GH-8542)Miss Islington (bot)2018-08-273-10/+48
| | | | | (cherry picked from commit 216b745eafa7cd4a683a8405dcfbd7f5567f504c) Co-authored-by: Przemysław Spodymek <przemyslaw@spodymek.com>
* bpo-34434: Update doc for bool(), float() and int() arguments (GH-8834)Miss Islington (bot)2018-08-271-1/+9
| | | | | (cherry picked from commit 3fe89dac42809a7741d50ebf595be98833b79b97) Co-authored-by: Louis Sautier <sautier.louis@gmail.com>
* Remove AIX workaround test_subprocess (GH-8939)Miss Islington (bot)2018-08-262-8/+3
| | | | | | | An old apparent AIX behavior workaround in test_subprocess's test_undecodable_env is no longer needed. (cherry picked from commit 89d79b1449750b14ded0149dcdd1e39247f2c65d) Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
* bpo-34503: Fix refleak in PyErr_SetObject() (GH-8934)Miss Islington (bot)2018-08-261-0/+1
| | | | | (cherry picked from commit a2eefa67542c25617a58c03a27c17fd48e2a0856) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* closes bpo-34504: Remove the useless NULL check in PySequence_Check(). (GH-8935)Miss Islington (bot)2018-08-251-1/+1
| | | | | | Reported by Svace static analyzer. (cherry picked from commit b57b4ac042b977e0b42a2f5ddb30ca7edffacfa9) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* closes bpo-34501: PyType_FromSpecWithBases: Check spec->name before ↵Miss Islington (bot)2018-08-251-4/+9
| | | | | | | | dereferencing it. (GH-8930) Reported by Svace static analyzer. (cherry picked from commit 5f79b50763d687aeeed8edcb4efcc7ac9f8fa186) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* closes bpo-34502: Remove a note about utf8_mode from sys.exit() docs. (GH-8928)Miss Islington (bot)2018-08-251-3/+0
| | | | | (cherry picked from commit 44838be9f79870ff3c9e04b7398a1dc3d56d53ed) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* [3.7] bpo-34492: Modules/main.c: Fix copy_wstrlist() (GH-8910) (GH-8922)Alexey Izbyshev2018-08-251-1/+4
| | | | | | | | * Add missing NULL check reported by Svace static analyzer. * Fix clear_wstrlist() call on a wrong list. (cherry picked from commit eb746dbae8b320758ee08f811316d7f283435cc0) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* Fix markup in stdtypes documentation (GH-8905)Miss Islington (bot)2018-08-251-5/+5
| | | | | (cherry picked from commit 2e5d2ea2089e111fb8e5b8c5916242da2906c399) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34171: Prevent creating Lib/trace.cover when run the trace module. (GH-8841)Miss Islington (bot)2018-08-253-10/+10
| | | | | (cherry picked from commit c406d5cd74002964a64c3eb7d9e2445a7fd3a03f) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* closes bpo-34493: Objects/genobject.c: Add missing NULL check to ↵Miss Islington (bot)2018-08-251-0/+3
| | | | | | | compute_cr_origin() (GH-8911) (cherry picked from commit 8fdd331bbf7e60dd81c02c7077f44c7939e2a05d) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-13312: Avoid int underflow in time year. (GH-8912)Miss Islington (bot)2018-08-253-6/+13
| | | | | | Avoids an integer underflow in the time module's year handling code. (cherry picked from commit 76be0fffff8b7dbe649ad4821144461800ffb0d0) Co-authored-by: Gregory P. Smith <greg@krypto.org>
* Fixed typo with asynccontextmanager code example (GH-8845)Miss Islington (bot)2018-08-241-1/+1
| | | | | | `yield conn`, instead of just `yield`. (cherry picked from commit 416cbce22d5d8879986125f07b3e293421bc975d) Co-authored-by: Alexander Vasin <hi@alvass.in>
* bpo-33550: Warn not to set SIGPIPE to SIG_DFL (GH-6773)Miss Islington (bot)2018-08-241-0/+34
| | | | | (cherry picked from commit a2510732da4c75789cc1750a034bdc9d9fdffb5b) Co-authored-by: Alfred Perlstein <alfred@freebsd.org>
* bpo-34426: fix typo (__lltrace__ -> __ltrace__) (GH-8822)Miss Islington (bot)2018-08-241-1/+1
| | | | | (cherry picked from commit 09efe49c07e2d5f93b415ead757c87e20cc0026f) Co-authored-by: Danish Prakash <grafitykoncept@gmail.com>
* bpo-34448: Improve output of usable wchar_t check (GH-8846)Miss Islington (bot)2018-08-242-7/+9
| | | | | (cherry picked from commit 3738fadc670274ecc4649f51b52a93602820a375) Co-authored-by: Michael Osipov <1983-01-06@gmx.net>
* closes bpo-34471: _datetime: Add missing NULL check to ↵Miss Islington (bot)2018-08-241-1/+4
| | | | | | | | tzinfo_from_isoformat_results. (GH-8869) Reported by Svace static analyzer. (cherry picked from commit 498845368ff0f6238750ab1d443e7cf4ec98ccd2) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-6700: Fix inspect.getsourcelines for module level frames/tracebacks ↵Miss Islington (bot)2018-08-244-3/+26
| | | | | | | (GH-8864) (cherry picked from commit 91cb298f811961277fd4cc4a32211899d48bedcb) Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
* Fix typo in the dataclasses's doc (GH-8896) (GH-8897)Miss Islington (bot)2018-08-241-1/+1
| | | | | (cherry picked from commit 075b3c325913475be16650f7cb2a99f3136623b9) Co-authored-by: Daniel Dương <dduong42@users.noreply.github.com>
* closes bpo-34468: Objects/rangeobject.c: Fix an always-false condition in ↵Miss Islington (bot)2018-08-241-4/+4
| | | | | | | | | | | range_repr() (GH-8880) Also, propagate the error from PyNumber_AsSsize_t() because we don't care only about OverflowError which is not reported if the second argument is NULL. Reported by Svace static analyzer. (cherry picked from commit 7ecae3ca0bda3cacf3b0125bae0bc718a17cc071) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* closes bpo-34474: Python/bltinmodule.c: Add missing NULL check in ↵Miss Islington (bot)2018-08-241-0/+5
| | | | | | | | builtin_sum_impl() (GH-8872) Reported by Svace static analyzer. (cherry picked from commit 2b824b2538c4a5f9f520c5de8a1eae5a0c181a94) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* closes bpo-34477: Objects/typeobject.c: Add missing NULL check to ↵Miss Islington (bot)2018-08-241-0/+3
| | | | | | | | type_init() (GH-8876) Reported by Svace static analyzer. (cherry picked from commit f6247aac08c1a79d0479145a405718bb76dba434) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* Fix doc for `add_subparsers` arguments (GH-8884)Miss Islington (bot)2018-08-231-1/+1
| | | | | | There was a missing comma. (cherry picked from commit cc18258daf2727a4b8d657aaf0bf8a9cb0b54bb3) Co-authored-by: Anthony Sottile <asottile@umich.edu>
* Fix typo in asyncio.BoundedSemaphore docs (GH-8882)Miss Islington (bot)2018-08-231-1/+1
| | | | | | semapthores -> semaphores (cherry picked from commit b8a181f4ae167e4eda60f585a536240764151cf7) Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
* bpo-34454: fix .fromisoformat() methods crashing on inputs with surrogate ↵Miss Islington (bot)2018-08-233-10/+84
| | | | | | | | | | | | | | | | | | | | | | | code points (GH-8862) The current C implementations **crash** if the input includes a surrogate Unicode code point, which is not possible to encode in UTF-8. Important notes: 1. It is possible to pass a non-UTF-8 string as a separator to the `.isoformat()` methods. 2. The pure-Python `datetime.fromisoformat()` implementation accepts strings with a surrogate as the separator. In `datetime.fromisoformat()`, in the special case of non-UTF-8 separators, this implementation will take a performance hit by making a copy of the input string and replacing the separator with 'T'. Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru> Co-authored-by: Paul Ganssle <paul@ganssle.io> (cherry picked from commit 096329f0b2bf5e3f0a16363aa631d993ce078737) Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
* Make it more clear that setUpClass runs before each class, not "class run" ↵Miss Islington (bot)2018-08-231-1/+1
| | | | | | | (GH-8844) (cherry picked from commit c33bb5d4016fb2fc8f3b6d4b0c14b73b33cdb3cf) Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
* bpo-34207: Fix pymain_read_conf() for UTF-8 Mode (GH-8868) (GH-8870)Victor Stinner2018-08-231-1/+6
| | | | | | | bpo-34170, bpo-34207: pymain_read_conf() now sets Py_UTF8Mode to config->utf8_mode. pymain_read_conf() calls indirectly Py_DecodeLocale() and Py_EncodeLocale() which depend on Py_UTF8Mode. (cherry picked from commit 89487f51b8d6ba8a55f5de0ed689e46fefe73cc9)
* bpo-34436: Fix check that disables overallocation for the last fmt specifier ↵Miss Islington (bot)2018-08-231-3/+3
| | | | | | | | (GH-8826) Reported by Svace static analyzer. (cherry picked from commit ccd99752675042bd5f67d332c5b0ed85ba1f2da3) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-34457: Python/ast.c: Add missing NULL check to alias_for_import_name(). ↵Miss Islington (bot)2018-08-221-0/+2
| | | | | | | | (GH-8852) Reported by Svace static analyzer. (cherry picked from commit 28853a249b1d0c890b7e9ca345290bb8c1756446) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-34456: pickle: Add missing NULL check to save_global(). (GH-8851)Miss Islington (bot)2018-08-221-0/+2
| | | | | | Reported by Svace static analyzer. (cherry picked from commit f8c06b028036e50596e75d4c9f6b27ba05133efe) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-34400: Fix more undefined behavior in parsetok.c (GH-8833)Miss Islington (bot)2018-08-201-2/+4
| | | | | (cherry picked from commit 3e26e42c905852394fa136f1cc564dac98b56166) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* bpo-34441: Fix ABC.__subclasscheck__ crash on classes with invalid ↵Miss Islington (bot)2018-08-203-0/+36
| | | | | | | | __subclasses__ (GH-8835) The missing NULL check was reported by Svace static analyzer. (cherry picked from commit cdbf50cba1664f72ae6621a89c324a32fea70377) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* bpo-30411: Use --git-dir instead of -C to make git work under version below ↵Miss Islington (bot)2018-08-202-19/+7
| | | | | | | 1.8.5. (GH-8744) (cherry picked from commit 4c8555773a801f957297132a92c0acb382d640e4) Co-authored-by: Xiang Zhang <angwerzx@126.com>