summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* closes bpo-34540: Convert shutil._call_external_zip to use subprocess rather ↵benjamin-external-zipBenjamin Peterson2018-08-282-6/+13
| | | | than distutils.spawn.
* [2.7] bpo-6700: Fix inspect.getsourcelines for module level ↵Tal Einat2018-08-264-4/+30
| | | | | | | frames/tracebacks (GH-8864) (cherry picked from commit 91cb298f811961277fd4cc4a32211899d48bedcb) Co-authored-by: Vladimir Matveev <v2matveev@outlook.com>
* bpo-34491: Add missing Py_DECREF() in _bsddb's DB_join() (GH-8909)Zackery Spytz2018-08-251-0/+1
|
* [2.7] Issue GH-18560: Fix potential NULL pointer dereference in sum(). (GH-8892)Benjamin Peterson2018-08-232-0/+6
| | | | | (cherry picked from commit 704e2d374f88bca83339b95d559b0abce12dc6bd) Co-authored-by: Christian Heimes <christian@cheimes.de>
* 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>
* 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>
* [2.7] bpo-34457: Python/ast.c: Add missing NULL check to ↵Alexey Izbyshev2018-08-221-0/+2
| | | | | | | | alias_for_import_name(). (GH-8852) (GH-8858) Reported by Svace static analyzer. (cherry picked from commit 28853a249b1d0c890b7e9ca345290bb8c1756446) Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
* [2.7] bpo-34400: Fix more undefined behavior in parsetok.c (GH-8833). (GH-8849)Zackery Spytz2018-08-221-2/+4
| | | | | (cherry picked from commit 3e26e42c905852394fa136f1cc564dac98b56166) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [2.7] bpo-30411: Use --git-dir instead of -C to make git work under version ↵Xiang Zhang2018-08-202-6/+6
| | | | | | | below 1.8.5. (GH-8744) (GH-8838) (cherry picked from commit 4c8555773a801f957297132a92c0acb382d640e4)
* bpo-34395: Fix memory leaks caused by incautious usage of PyMem_Realloc(). ↵Sergey Fedoseev2018-08-171-32/+24
| | | | (GH-8785)
* [2.7] bpo-34391: Fix ftplib test for TLS 1.3 (GH-8787) (GH-8791)Christian Heimes2018-08-162-0/+6
| | | | | | | | | | | | | | Read from data socket to avoid "[SSL] shutdown while in init" exception during shutdown of the dummy server. Signed-off-by: Christian Heimes <christian@python.org> <!-- issue-number: [bpo-34391](https://www.bugs.python.org/issue34391) --> https://bugs.python.org/issue34391 <!-- /issue-number -->. (cherry picked from commit 1590c393360df059160145e7475754427bfc6680) Co-authored-by: Christian Heimes <christian@python.org>
* closes bpo-34400: Fix undefined behavior in parsetok(). (GH-4439)Miss Islington (bot)2018-08-152-1/+2
| | | | | | Avoid undefined pointer arithmetic with NULL. (cherry picked from commit 7c4ab2afb17b99eb3f61f9c73cbd548b5e0ad2c0) Co-authored-by: Zackery Spytz <zspytz@gmail.com>
* [2.7] bpo-34399: 2048 bits RSA keys and DH params (GH-8762) (GH-8765)Christian Heimes2018-08-1416-373/+603
| | | | | | | | | | | | | Downstream vendors have started to deprecate weak keys. Update all RSA keys and DH params to use at least 2048 bits. Finite field DH param file use RFC 7919 values, generated with certtool --get-dh-params --sec-param=high Signed-off-by: Christian Heimes <christian@python.org>. (cherry picked from commit 88bfd0bce05043f658e50addd21366f317995e35) Co-authored-by: Christian Heimes <christian@python.org>
* [2.7] bpo-34272: Move argument parsing tests from test_capi to ↵Serhiy Storchaka2018-08-062-140/+147
| | | | | | test_getargs2. (GH-8567). (GH-8691) (cherry picked from commit 8f7bb100d0fa7fb2714f3953b5b627878277c7c6)
* [2.7] bpo-34236: Remove mistakenly backported Test6012 in test_capi.py. ↵Zackery Spytz2018-08-061-6/+0
| | | | | (GH-8681) This was backported by mistake in ef19fd2.
* [2.7] bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673)Terry Jan Reedy2018-08-061-3/+3
| | | | | | | The change in the mini language floating point and decimal table is consistent with 'Exponential notation' and clarifies that we are referring to the output notation, not an object type. (cherry picked from commit 28c7f8c8ce34a0cb848822a252a9d0a761fb42d5)
* Fix docstring of Profiler class (GH-8651)Miss Islington (bot)2018-08-032-4/+4
| | | | | (cherry picked from commit 2ebd3813af9172fe1f9b2f6004edf6f1e1e5d9f1) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* [2.7] bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639) (GH-8644)Terry Jan Reedy2018-08-022-0/+3
| | | | | | | | | Some MacOS-tk combinations need .update_idletasks(). The call is both unneeded and innocuous on Linux and Windows. Patch by Kevin Walzer. (cherry picked from commit 9beaef6225cdae972b1cccd5310828cc29bf9d33) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
* Fix compilation warnings on Windows (GH-8627)Victor Stinner2018-08-023-3/+3
| | | | | | | | | | | | | | | | | | | * Fix compilation warning in _ctypes module on Window (cherry picked from commit 20f11fe43c47b68c8b9dd6539d2d40b66c9957f9) * Fix compilation warnings on Windows 64-bit (cherry picked from commit 725e4212229bf68f87d4f66c1815d444ddfc7aa5) * Fix compiler warning in unicodeobject.c Explicitly case to Py_UNICODE to fix the warning: Objects\unicodeobject.c(4225): warning C4244: '=' : conversion from 'long' to 'Py_UNICODE', possible loss of data The downcast cannot overflow since we check that value <= 0x10ffff.
* bpo-29565: Fix compilation for C89 (GH-8626)Victor Stinner2018-08-021-8/+12
| | | Use a local scope for the 'i' variable.
* bpo-29565: Corrected ctypes passing of large structs by value on Windows ↵Victor Stinner2018-08-024-0/+57
| | | | | | | | | | | | | | AMD64 (GH-168) (GH-8625) Fixed bpo-29565: Corrected ctypes passing of large structs by value. Added code and test to check that when a structure passed by value is large enough to need to be passed by reference, a copy of the original structure is passed. The callee updates the passed-in value, and the test verifies that the caller's copy is unchanged. A similar change was also added to the test added for bpo-20160 (that test was passing, but the changes should guard against regressions). (cherry picked from commit a86339b83fbd0932e0529a3c91935e997a234582)
* [2.7] bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)Tal Einat2018-08-028-1/+17
| | | | | Added missing .grab_release() calls to all places where we call .grab_set(). (cherry picked from commit 10ea9409ceb5da83cb380b610750551e26561044)
* [2.7] bpo-34234: Use _PyAnyInt_Check() and _PyAnyInt_CheckExact(). (GH-8479)Serhiy Storchaka2018-07-3136-81/+75
|
* bpo-27671: Update FAQ about why len is function (GH-8432)Miss Islington (bot)2018-07-301-18/+19
| | | | | (cherry picked from commit c48e26dcadbff8620bb5881d3bd148fc8894d0ef) Co-authored-by: INADA Naoki <methane@users.noreply.github.com>
* [2.7] Use 'for example' instead of 'in other words' in compound statement ↵Andrés Delfino2018-07-301-1/+1
| | | | | | | doc (GH-8401) (cherry picked from commit 6921ef7bef4eab3819b3d0fda5fa3e3b2a8c0613) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* bpo-34229: Check start and stop of slice object to be long when they are not ↵Xtreak2018-07-264-3/+43
| | | | int in PySlice_GetIndices (GH-8480)
* bpo-28677: Improve phrasing of when instance attribute is referenced (GH-6208)Miss Islington (bot)2018-07-251-2/+2
| | | | | (cherry picked from commit c0f0a7669c73c0d444851dd4c5299de2479214cc) Co-authored-by: Aaron Ang <aaronang@users.noreply.github.com>
* Fix site module documentation. (GH-8441)Miss Islington (bot)2018-07-241-1/+1
| | | | | | The script will exit with the number 0 (zero), instead of the letter O. (cherry picked from commit 95d34c2a37f4c5046f6439abef881925d34fe4ac) Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
* [2.7] bpo-33468: Add try-finally contextlib.contextmanager example (GH-7816) ↵Tal Einat2018-07-241-12/+18
| | | | | | | (GH-8427) (cherry picked from commit bde782bb594edffeabe978abeee2b7082ab9bc2a) Co-authored-by: Matthias Bussonnier <bussonniermatthias@gmail.com>
* bpo-34189: Remove a file backported by accident. (GH-8419)Serhiy Storchaka2018-07-231-1227/+0
|
* bpo-33336, imaplib: Legalize MOVE command (GH-6569)Miss Islington (bot)2018-07-232-0/+4
| | | | | | | | imaplib now allows MOVE command in IMAP4.uid() (RFC 6851: IMAP MOVE Extension) and potentially as a name of supported method of IMAP4 object. (cherry picked from commit caa331d492acc67d8f4edd16542cebfabbbe1e79) Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
* [2.7] bpo-34189: Add simple tests for new Tk widget options. (GH-8396). ↵Serhiy Storchaka2018-07-223-3/+1263
| | | | | | | (GH-8400) (cherry picked from commit e271ca78e37a502b3dc1036f824aa3999efcd56b) (cherry picked from commit c75c1e0e8aeb720ac3fcfab119b70cabba4e8235)
* bpo-25943: Check for integer overflow in bsddb's DB_join(). (GH-8392)Zackery Spytz2018-07-221-1/+7
|
* bpo-25943: Fix potential heap corruption in bsddb's _db_associateCallback() ↵Zackery Spytz2018-07-213-39/+72
| | | | | | | (GH-8337) There was a missing check for integer overflow, several function calls were not checked for failure, and allocated memory was not freed if an error occurred.
* [2.7] Enable GUI testing on Travis Linux builds via Xvfb (GH-7887)Zachary Ware2018-07-191-1/+5
| | | (cherry picked from commit b12112b5ba608cdd7a0962a6b18cad4fe58b46e6)
* Clarify ValueError's broad applicability (GH-8313) (GH-8316)Miss Islington (bot)2018-07-171-1/+1
| | | | | (cherry picked from commit feabae961707b00008c15a31352e458f4e8b3a6c) Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
* [2.7] bpo-34068: iobase_close could call PyObject_SetAttrString with an ↵Serhiy Storchaka2018-07-173-3/+24
| | | | | | | | | exception set (GH-8282). (GH-8312) (GH-8314) (cherry picked from commit 28f07364f066792ceee93231dbb80ae8ad98b2bb) Co-authored-by: Zackery Spytz <zspytz@gmail.com>. (cherry picked from commit cc13016658a9ed86d0b702ab6c251ad5952a952f)
* bpo-34080: Fix a memory leak in the compiler. (GH-8222)Miss Islington (bot)2018-07-112-1/+3
| | | | | (cherry picked from commit 993030aac576710a46b3dd0b4864f819d4a94145) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* [2.7] bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192). (GH-8255)Serhiy Storchaka2018-07-114-2/+194
| | | | | (cherry picked from commit 504373c59b48f1ea12132d515459022730db6047) Also backport tests for skipitem() and handling errors.
* [2.7] bpo-34031: fix incorrect usage of self.fail in two tests (GH-8091) (#8225)Tal Einat2018-07-101-2/+1
| | | | | | | Actually just one fix on the 2.7 branch. Contributed by Bradley Laney. (cherry picked from commit 6b490b5db40fc29588e8e6cc23bb89c4fed74ad5)
* [2.7] prefix internal sqlite symbols with _pysqlite_ (GH-8215). (GH-8217)Benjamin Peterson2018-07-094-18/+18
| | | | | (cherry picked from commit 7762e4d3872818272800dfbd8e1d8e3a689eb8f2) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [2.7] delete some unused pysqlite forward declarations (GH-8211). (GH-8214)Benjamin Peterson2018-07-091-4/+0
| | | | | (cherry picked from commit d6d4432724b12efc0d280b8eb80bca0deb8d4323) Co-authored-by: Benjamin Peterson <benjamin@python.org>
* [2.7] Fixed several assertTrue() that were intended to be assertEqual(). ↵Serhiy Storchaka2018-07-094-7/+11
| | | | | | | | (GH-8191) (GH-8202) Fixed also testing the "always" warning filter. (cherry picked from commit b796e7dcdc24ff7ec53044af041254c83a8ace21) Co-authored-by: Sergey Fedoseev <fedoseev.sergey@gmail.com>
* bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). (GH-8193) ↵Serhiy Storchaka2018-07-093-36/+45
| | | | | | | (GH-8196) (cherry picked from commit 2a9b8babf0d09946ebebfdb2931cc0d3db5a1d3d). (cherry picked from commit 7c43b801503c802ed6ea4b811f5bc73791249d94)
* bpo-33888: Use CPython instead of Python in the FAQ (GH-7767)Miss Islington (bot)2018-07-071-6/+6
| | | | | | Make the change where discussing the CPython implementation of lists and dicts. (cherry picked from commit 8d41278045ee4e8bf1cadb58a7db58d70ad55237) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] closes bpo-34050: Fix link in SSL docs (GH-8173). (GH-8179)Benjamin Peterson2018-07-072-2/+3
| | | | | (cherry picked from commit 9c5ba097485c8c643b670acd4026f4382bc92f4b) Co-authored-by: Marcin Niemira <marcin@niemira.net>
* [2.7] bpo-33804: Document that the argument for io.TextIOBase.read() is ↵Andrés Delfino2018-07-081-1/+1
| | | | | | | optional (GH-7510). (GH-8171) (cherry picked from commit b6bb77c2b8e83ba6cb845c7b512ac564276e854f) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
* [2.7] bpo-34019: Fix wrong arguments for Opera Browser (GH-8047) (#8126)Pablo Galindo2018-07-072-4/+5
| | | | | | | | The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module. * Correct the arguments passed to the Opera Browser when opening a new URL.. (cherry picked from commit 3cf1f154edb88c108877729ea09f4ac174697fea) Co-authored-by: Bumsik Kim <k.bumsik@gmail.com>
* [2.7] bpo-33899: Make tokenize module mirror end-of-file is end-of-line ↵Ammar Askar2018-07-063-12/+47
| | | | | | | | | | | behavior (GH-7891) (#8133) Most of the change involves fixing up the test suite, which previously made the assumption that there wouldn't be a new line if the input didn't end in one. Contributed by Ammar Askar. (cherry picked from commit c4ef4896eac86a6759901c8546e26de4695a1389)