]>
git.ipfire.org Git - thirdparty/Python/cpython.git/log
Miss Islington (bot) [Thu, 28 Mar 2019 18:56:50 +0000 (11:56 -0700)]
bpo-35941: Fix ssl certificate enumeration for windows (GH-12486)
Add a function to collect certificates from several certificate stores into one certificate collection store that is then enumerated. This ensures we load as many certificates as we can access.
(cherry picked from commit
d93fbbf88e4abdd24a0a55e3ddf85b8420c62052 )
Co-authored-by: kctherookie <48805853+kctherookie@users.noreply.github.com>
Miss Islington (bot) [Thu, 28 Mar 2019 18:12:39 +0000 (11:12 -0700)]
bpo-36425: Add Simplified Chinese to the language switcher (GH-12537)
(cherry picked from commit
45a5fdb91cee665161a8b1980bb4e6ccb999f58f )
Co-authored-by: zhsj <zsj950618@gmail.com>
Miss Islington (bot) [Thu, 28 Mar 2019 15:08:35 +0000 (08:08 -0700)]
bpo-36459: Fix a possible double PyMem_FREE() due to tokenizer.c's tok_nextc() (12601)
Remove the PyMem_FREE() call added in
cb90c89 . The buffer will be
freed when PyTokenizer_Free() is called on the tokenizer state.
(cherry picked from commit
cda139d1ded6708665b53e4ed32ccc1d2627e1da )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Ned Deily [Thu, 28 Mar 2019 04:20:59 +0000 (00:20 -0400)]
[3.7] Fix NEWS entry with incorrect bpo number (GH-12600)
Miss Islington (bot) [Thu, 28 Mar 2019 00:01:31 +0000 (17:01 -0700)]
bpo-36245: Fix more empty environment variable checks (GH-12592)
(cherry picked from commit
b95a79c928fc4a6135d91c0c553cb2a63cf15140 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Wed, 27 Mar 2019 22:25:57 +0000 (15:25 -0700)]
bpo-31292: Fixed distutils check --restructuredtext for include directives (GH-10605)
(cherry picked from commit
d5a5a33f12b60129d57f9b423b77d2fcba506834 )
Co-authored-by: Philipp A <flying-sheep@web.de>
Miss Islington (bot) [Wed, 27 Mar 2019 15:47:57 +0000 (08:47 -0700)]
bpo-36441: Fixes creating a venv when debug binaries are installed. (GH-12566)
(cherry picked from commit
4a9a505d6f2474a570422dad89f8d1b344d6cd36 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Wed, 27 Mar 2019 10:18:36 +0000 (03:18 -0700)]
Doc: Fixed missing punctuation in datamodel.rst (GH-12581)
(cherry picked from commit
1fc5bf2ff27b898e8d9460d0fbc791e83009ed71 )
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
Miss Islington (bot) [Wed, 27 Mar 2019 01:26:52 +0000 (18:26 -0700)]
bpo-33832: Add "magic method" glossary entry (GH-7630)
(cherry picked from commit
f760610bddd7e8f8ac0914d5d59ef806bc16a73b )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 27 Mar 2019 01:23:54 +0000 (18:23 -0700)]
Minor doc improvement (GH-10341)
Change "star-operator" to "* operator".
(cherry picked from commit
dfd775a0b1aee51d842b20cdebd97cc52c0b32e7 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Wed, 27 Mar 2019 00:19:23 +0000 (17:19 -0700)]
bpo-36429: Fix starting IDLE with pyshell (GH-12548)
Add idlelib.pyshell alias at top; remove pyshell alias at bottom.
Remove obsolete __name__=='__main__' command.
(cherry picked from commit
6a258c88906a7e8acde455ee2acb78b6f315ea0b )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Tue, 26 Mar 2019 21:20:29 +0000 (14:20 -0700)]
bpo-34203: FAQ: improve wording of paragraph about 2.x vs. 3.x (GH-9821)
(cherry picked from commit
6cd658b1a5cb2413230dbc2d9395d20498be8518 )
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
Miss Islington (bot) [Tue, 26 Mar 2019 15:39:03 +0000 (08:39 -0700)]
bpo-36436: Fix _testcapi.pymem_buffer_overflow() (GH-12560)
Handle memory allocation failure.
(cherry picked from commit
414b1cde93764cdabb0798b02af4dd7df954424d )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Tue, 26 Mar 2019 09:47:08 +0000 (02:47 -0700)]
bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556)
https://bugs.python.org/issue36433
(cherry picked from commit
871309c775fd4d72048bfaa31affd54f9934f7dd )
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Miss Islington (bot) [Tue, 26 Mar 2019 06:26:42 +0000 (23:26 -0700)]
bpo-36430: Fix a possible reference leak in itertools.count(). (GH-12551)
(cherry picked from commit
0523c39e7720b82b38ad793d3f1a5681adcdf873 )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Tue, 26 Mar 2019 04:52:39 +0000 (21:52 -0700)]
Fix "the the" in the idle docs. (GH-12549)
(cherry picked from commit
577277f669a6d5c626c142358a940a10d32813ff )
Co-authored-by: Benjamin Peterson <benjamin@python.org>
Ned Deily [Mon, 25 Mar 2019 23:31:06 +0000 (19:31 -0400)]
bump to 3.7.3+
Ned Deily [Mon, 25 Mar 2019 23:28:53 +0000 (19:28 -0400)]
Merge tag 'v3.7.3' into 3.7
Miss Islington (bot) [Mon, 25 Mar 2019 23:00:00 +0000 (16:00 -0700)]
bpo-34085: Improve wording on classmethod/staticmethod (GH-8228)
* bpo-34085: Improve wording on classmethod/staticmethod
* Address comments from Éric
* Address comments from Éric
(cherry picked from commit
548cb6060ab9d5a66931ea2be4da08c2c72c9176 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Mon, 25 Mar 2019 21:36:43 +0000 (14:36 -0700)]
bpo-36370: Check for PyErr_Occurred() after PyImport_GetModule() (GH-12504)
Ned Deily [Mon, 25 Mar 2019 20:21:05 +0000 (16:21 -0400)]
3.7.3
Miss Islington (bot) [Mon, 25 Mar 2019 20:03:16 +0000 (13:03 -0700)]
Add note to Queue.get() docs about block=True (GH-2223) (GH-12538)
(cherry picked from commit
713a8ae7926472b02ee1a394633eb54aaa7912d1 )
Co-authored-by: Stephen Rosen <sirosen@globus.org>
Miss Islington (bot) [Mon, 25 Mar 2019 08:34:26 +0000 (01:34 -0700)]
bpo-36421: Fix a possible double decref in _ctypes.c's PyCArrayType_new(). (GH-12530)
Set type_attr to NULL after the assignment to stgdict->proto (like
what is done with stgdict after the Py_SETREF() call) so that it is
not decrefed twice on error.
(cherry picked from commit
5e333784f007950f22de44c1ffab5b0c03d6691f )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Mon, 25 Mar 2019 07:47:55 +0000 (00:47 -0700)]
bpo-36218: Fix handling of heterogeneous values in list.sort (GH-12209) GH-12532)
(cherry picked from commit
dd5417afcf8924bcdd7077351941ad21727ef644 )
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Miss Islington (bot) [Thu, 21 Mar 2019 21:54:59 +0000 (14:54 -0700)]
Fix registry key for Windows SDK detection (GH-12445)
(cherry picked from commit
aedc273fd90e31c7a20904568de3115f8957395b )
Co-authored-by: Isuru Fernando <isuruf@gmail.com>
Harmon [Sun, 17 Mar 2019 23:49:43 +0000 (18:49 -0500)]
Fix "catchs" typos in NEWS entries (GH-12364)
Ned Deily [Wed, 13 Mar 2019 14:49:21 +0000 (10:49 -0400)]
Remove NEWS entries duplicated from 3.7.2final. (GH-12309)
Miss Islington (bot) [Wed, 13 Mar 2019 00:11:08 +0000 (17:11 -0700)]
bpo-36174: Update nuget authoring for new license field. (GH-12300)
(cherry picked from commit
26c910c59c47bdef4220c34e66c45a625bda5e56 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Ned Deily [Tue, 12 Mar 2019 23:44:41 +0000 (19:44 -0400)]
Correct minor edit to news entry. (GH-12299)
Miss Islington (bot) [Sun, 24 Mar 2019 23:53:13 +0000 (16:53 -0700)]
bpo-30348: IDLE: Add test_autocomplete unittest (GH-2209)
(cherry picked from commit
113d735e2091427f9623097d2a222dd99b16b568 )
Co-authored-by: Louie Lu <git@louie.lu>
Miss Islington (bot) [Sun, 24 Mar 2019 21:56:27 +0000 (14:56 -0700)]
bpo-31822: Document that urllib.parse.{Defrag,Split,Parse}Result are namedtuples (GH-4434)
(cherry picked from commit
13c1f72cd1d91fdc2654f2f57356b2eacb75f164 )
Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
Miss Islington (bot) [Sun, 24 Mar 2019 21:32:40 +0000 (14:32 -0700)]
bpo-36405: IDLE - Restore __main__ and add tests (GH-12518)
Fix error in commit
2b75155 noticed by Serhiy Storchaka.
(cherry picked from commit
0fe4513d9a5510ae91c0da7eb0433f79a6d4dda9 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 24 Mar 2019 19:12:05 +0000 (12:12 -0700)]
[3.7] Replace "DOS box" with link to Windows FAQ. (GH-12390) (GH-12525)
(cherry picked from commit
6661c1720ebd322e2cb6995a243e8dc6e588d931 )
Co-authored-by: Ned Deily <nad@python.org>
Miss Islington (bot) [Sat, 23 Mar 2019 16:47:40 +0000 (09:47 -0700)]
bpo-32217: Correct usage of ABI tags in freeze. (GH-4719)
Check for sys.abiflags before using since not all platforms have it defined.
(cherry picked from commit
a7987e71939fa631296f83861fb376361ddd59ee )
Co-authored-by: AraHaan <15173749+AraHaan@users.noreply.github.com>
Miss Islington (bot) [Sat, 23 Mar 2019 12:21:46 +0000 (05:21 -0700)]
bpo-23205: IDLE: Add tests and refactor grep's findfiles (GH-12203)
* Add tests for grep findfiles.
* Move findfiles to module function.
* Change findfiles to use os.walk.
Based on a patch by Al Sweigart.
(cherry picked from commit
d60f658fc0278f3fcdadec8ddcab35b8ae03e1d1 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Sat, 23 Mar 2019 08:08:37 +0000 (01:08 -0700)]
bpo-36405: Use dict unpacking in idlelib (GH-12507)
Remove now unneeded imports.
(cherry picked from commit
2b75155590eb42d25e474b776ee9fdcc4b3dc840 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sat, 23 Mar 2019 07:46:15 +0000 (00:46 -0700)]
bpo-33319: Clarify subprocess call docs. (GH-12508)
Clarify capturing or suppressing stdout and stderr on the old call APIs.
Do not state that they are equivalent to run() calls when they are not implemented using run as that was misleading. Unlike run they cannot handle stdout or stderr being set to PIPE without a risk of deadlock.
(cherry picked from commit
7a2e84c3488cfd6c108c6b41ff040825f1757566 )
Co-authored-by: Gregory P. Smith <greg@krypto.org>
Miss Islington (bot) [Fri, 22 Mar 2019 23:30:04 +0000 (16:30 -0700)]
bpo-35155: clarify protocol handler method naming (GH-10313)
Clarify that the naming of protocol handler methods shouldn't be literally called "protocol" but should be named after the actual protocol.
https://bugs.python.org/issue35155
(cherry picked from commit
dd7c4ceed90792f711347024852d4cf883a9ab9e )
Co-authored-by: Denton Liu <liu.denton+github@gmail.com>
Miss Islington (bot) [Fri, 22 Mar 2019 22:42:51 +0000 (15:42 -0700)]
bpo-36396: Remove fgBg param of idlelib.config.GetHighlight() (GH-12491)
This param was only used once and changed the return type.
(cherry picked from commit
c1419578a18d787393c7ccee149e7c1fff17a99e )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Zackery Spytz [Fri, 22 Mar 2019 13:20:49 +0000 (07:20 -0600)]
bpo-35284: Fix the error handling in the compiler's compiler_call(). (GH-10625) (GH-12496)
compiler_call() needs to check if an error occurred during the
maybe_optimize_method_call() call.
(cherry picked from commit
97f5de01adf993aee17dcd26e22ae421d013f372 )
Miss Islington (bot) [Fri, 22 Mar 2019 08:04:21 +0000 (01:04 -0700)]
bpo-23984: Improve descriptor documentation (GH-1034) (GH-12459)
Miss Islington (bot) [Fri, 22 Mar 2019 07:54:32 +0000 (00:54 -0700)]
Raise the timeout in test_multiprocessing_* for slow buildbots (GH-12489)
(cherry picked from commit
40b6907b377cfc8c4743007894364ac8c5a1c113 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 21 Mar 2019 23:56:20 +0000 (16:56 -0700)]
bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12488)
bpo-36256: Fix bug in parsermodule when parsing if statements
In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with
two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one.
(cherry picked from commit
9a0000d15d27361eaa47b77600c7c00a9787a894 )
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
Miss Islington (bot) [Thu, 21 Mar 2019 21:54:59 +0000 (14:54 -0700)]
Fix registry key for Windows SDK detection (GH-12445)
(cherry picked from commit
aedc273fd90e31c7a20904568de3115f8957395b )
Co-authored-by: Isuru Fernando <isuruf@gmail.com>
Miss Islington (bot) [Thu, 21 Mar 2019 17:33:40 +0000 (10:33 -0700)]
bpo-35978: Correctly skips venv tests in venvs (GH-12220)
Also fixes venvs from the build directory on Windows.
(cherry picked from commit
8bba81fd55873148c65b7d0e6a6effbd63048c76 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Miss Islington (bot) [Thu, 21 Mar 2019 16:25:11 +0000 (09:25 -0700)]
bpo-36245: Avoid problems when building in a directory containing spaces. (GH-12241)
(cherry picked from commit
7ee88bf3e59493137a775368165c5c5fe1ed7f46 )
Co-authored-by: Jess <jess@gmail.com>
Miss Islington (bot) [Thu, 21 Mar 2019 04:31:57 +0000 (21:31 -0700)]
bpo-36312: Fix decoders for some code pages. (GH-12369)
(cherry picked from commit
c1e2c288f41cdc1c6e6e09d9a5277a58232ceb03 )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Victor Stinner [Wed, 20 Mar 2019 12:03:11 +0000 (13:03 +0100)]
bpo-36367: Free buffer if realloc fails in tokenize.c (GH-12442) (GH-12471)
Julien Palard [Wed, 20 Mar 2019 09:40:30 +0000 (10:40 +0100)]
[3.7] bpo-35564: add master_doc='contents' to conf.py (GH-12460)
(cherry picked from commit
fc8284e22074af8154e9865c8391b955f13a308b )
Co-authored-by: Jean-François B <jfbu@free.fr>
Victor Stinner [Wed, 20 Mar 2019 00:00:41 +0000 (01:00 +0100)]
Fix compiler warning in call_readline() (GH-10820) (GH-12452)
Replace strncpy() with memcpy() in call_readline() to fix the
following warning, the NUL byte is written manually just after:
Modules/readline.c: In function ‘call_readline’:
Modules/readline.c:1303:9: warning: ‘strncpy’ output truncated before
terminating nul copying as many bytes from a string as its length
[-Wstringop-truncation]
strncpy(p, q, n);
^~~~~~~~~~~~~~~~
Modules/readline.c:1279:9: note: length computed here
n = strlen(p);
^~~~~~~~~
(cherry picked from commit
1600f60414e620c4298c15dac803427d8f0a977c )
Victor Stinner [Tue, 19 Mar 2019 23:32:11 +0000 (00:32 +0100)]
bpo-36365: Fix compiler warning in structseq.c (GH-12451)
Victor Stinner [Tue, 19 Mar 2019 23:30:45 +0000 (00:30 +0100)]
bpo-36236: Handle removed cwd at Python init (GH-12450)
At Python initialization, the current directory is no longer
prepended to sys.path if it has been removed.
Victor Stinner [Tue, 19 Mar 2019 14:08:17 +0000 (15:08 +0100)]
bpo-36356: pymain_free() calls _PyRuntime_Finalize() (GH-12436)
Ensure that _PyRuntime_Finalize() is always call. This change fix a
few memory leaks when running "python3 -V".
Inada Naoki [Tue, 19 Mar 2019 08:30:58 +0000 (17:30 +0900)]
bpo-36307: Travis: upgrade to Xenial environment (GH-12356)
(cherry picked from commit
74ae50e53e59bbe39d6287b902757f0cd01327dc )
Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Victor Stinner [Mon, 18 Mar 2019 17:34:11 +0000 (18:34 +0100)]
bpo-36235: Enhance distutils test_customize_compiler() (GH-12403) (GH-12415)
The test test_customize_compiler() now mocks all sysconfig variables
and all environment variables used by customize_compiler().
(cherry picked from commit
72c7b372cf145fded93a9a776acc742a60090f95 )
Miss Islington (bot) [Mon, 18 Mar 2019 14:22:41 +0000 (07:22 -0700)]
bpo-36272: Logging now propagates RecursionError (GH-12312) (GH-12391)
(cherry picked from commit
65f64b1903ae85b97a30f514bbc1b7ce940c3af2 )
Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
Rémi Lapeyre [Mon, 18 Mar 2019 11:51:23 +0000 (12:51 +0100)]
bpo-36317: Fix typo in _PyObject_FastCallDict documentation (GH-12383) (GH-12402)
(cherry picked from commit
b4b97af8bed21e32eb77e7f7497acde1f8af4e70 )
Miss Islington (bot) [Mon, 18 Mar 2019 07:48:02 +0000 (00:48 -0700)]
bpo-36321: Fix misspelled attribute in namedtuple() (GH-12375) (GH-12395)
(cherry picked from commit
23581c018fceb607fe829a41c6fbe81b4d502cab )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Mariatta [Sun, 17 Mar 2019 23:53:06 +0000 (16:53 -0700)]
Fix typo in unittest.mock documentation: manger -> manager (GH-12352)
(cherry picked from commit
dc69f69f14fb89511d018a3927fc6378a58d2def )
Co-authored-by: Joan Massich <mailsik@gmail.com>
Harmon [Sun, 17 Mar 2019 23:49:43 +0000 (18:49 -0500)]
Fix "catchs" typos in NEWS entries (GH-12364)
Miss Islington (bot) [Sun, 17 Mar 2019 23:09:14 +0000 (16:09 -0700)]
bpo-34745: Fix asyncio sslproto memory issues (GH-12386)
* Fix handshake timeout leak in asyncio/sslproto
Refs MagicStack/uvloopGH-222
* Break circular ref _SSLPipe <-> SSLProtocol
* bpo-34745: Fix asyncio ssl memory leak
* Break circular ref SSLProtocol <-> UserProtocol
* Add NEWS entry
(cherry picked from commit
f683f464259715d620777d7ed568e701337a703a )
Co-authored-by: Fantix King <fantix.king@gmail.com>
Miss Islington (bot) [Sat, 16 Mar 2019 23:47:28 +0000 (16:47 -0700)]
bpo-23216: IDLE: Add docstrings to search modules (GH-12141)
(cherry picked from commit
0bb5e75cf8bc9b197ffb91cba6f30543ed502708 )
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
Miss Islington (bot) [Sat, 16 Mar 2019 20:01:35 +0000 (13:01 -0700)]
Update the seealso entries for namedtuple() (GH-12373)
* Replace external recipe link with a link to the dataclasses module.
* Highlight the class definition syntax for typing.NamedTuple
and add an example for clarity.
(cherry picked from commit
9c68543f022b130ff51944edc6771c60510ee683 )
Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
Miss Islington (bot) [Sat, 16 Mar 2019 04:03:43 +0000 (21:03 -0700)]
bpo-36138: Clarify docs about converting datetime.timedelta to scalars. (GH-12137)
Be explicit that timedelta division converts an overall duration to the interval
units given by the denominator.
(cherry picked from commit
f40b4a0b6277b2779b9ded3736325489f2af93e4 )
Co-authored-by: Yasser A <yalshalaan@gmail.com>
Victor Stinner [Fri, 15 Mar 2019 15:03:50 +0000 (16:03 +0100)]
bpo-36235: Fix CFLAGS in distutils customize_compiler() (GH-12236) (GH-12348)
Fix CFLAGS in customize_compiler() of distutils.sysconfig: when the
CFLAGS environment variable is defined, don't override CFLAGS variable with
the OPT variable anymore.
Initial patch written by David Malcolm.
Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit
86082c22d23285995a32aabb491527c9f5629556 )
Miss Islington (bot) [Fri, 15 Mar 2019 04:52:59 +0000 (21:52 -0700)]
Fix typo duplicate period in a docstring in the zipfile module. (GH-12326)
(cherry picked from commit
53c2935dac9d814a3d0bae504dae2ee1c941c731 )
Co-authored-by: nick sung <sungboss2004@gmail.com>
Victor Stinner [Thu, 14 Mar 2019 16:12:01 +0000 (17:12 +0100)]
bpo-36262: Fix _Py_dg_strtod() memory leak (goto undfl) (GH-12276) (GH-12331)
Fix an unlikely memory leak on conversion from string to float in the
function _Py_dg_strtod() used by float(str), complex(str),
pickle.load(), marshal.load(), etc.
Fix an unlikely memory leak in _Py_dg_strtod() on "undfl:" label:
rewrite memory management in this function to always release all
memory before exiting the function. Initialize variables to NULL, and
set them to NULL after calling Bfree() at the "cont:" label.
Note: Bfree(NULL) is well defined: it does nothing.
(cherry picked from commit
9776b0636ae39668d3ce1c006d4be01dad01bf9f )
Serhiy Storchaka [Thu, 14 Mar 2019 08:47:27 +0000 (10:47 +0200)]
[3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322)
(cherry picked from commit
d53fe5f407ff4b529628b01a1bcbf21a6aad5c3a )
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Ned Deily [Wed, 13 Mar 2019 14:49:21 +0000 (10:49 -0400)]
Remove NEWS entries duplicated from 3.7.2final. (GH-12309)
Miss Islington (bot) [Wed, 13 Mar 2019 00:11:08 +0000 (17:11 -0700)]
bpo-36174: Update nuget authoring for new license field. (GH-12300)
(cherry picked from commit
26c910c59c47bdef4220c34e66c45a625bda5e56 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Ned Deily [Tue, 12 Mar 2019 23:44:41 +0000 (19:44 -0400)]
Correct minor edit to news entry. (GH-12299)
Ned Deily [Tue, 12 Mar 2019 22:09:08 +0000 (18:09 -0400)]
bump to 3.7.3rc1+
Ned Deily [Tue, 12 Mar 2019 19:14:21 +0000 (15:14 -0400)]
3.7.3rc1
Ned Deily [Tue, 12 Mar 2019 16:20:44 +0000 (12:20 -0400)]
Minor edits to news entries for 3.7.3 (GH-12292)
Miss Islington (bot) [Tue, 12 Mar 2019 09:17:17 +0000 (02:17 -0700)]
bpo-35132: Fixes missing target in gdb pep0393 check. (GH-11848) (GH-12284)
(cherry picked from commit
1ceb3a3d172dcf0ddff38d5d6b559443ad065b84 )
Co-authored-by: Lisa Roach <lisaroach14@gmail.com>
Miss Islington (bot) [Tue, 12 Mar 2019 04:00:59 +0000 (21:00 -0700)]
[3.7] bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103) (GH-12285)
This is relevant for `debug doesnotexist()`, which would crash with a
NameError otherwise.
(cherry picked from commit
3e936431e23b424b1e4665e8165c245924f0ab02 )
Co-authored-by: Daniel Hahler <github@thequod.de>
https://bugs.python.org/issue35931
Miss Islington (bot) [Mon, 11 Mar 2019 14:23:30 +0000 (07:23 -0700)]
[3.7] Doc: Fix inconsistency in multiprocessing (GH-12273) (GH-12275)
(cherry picked from commit
d9bd8ec2a40ea67bc4248a72943a409ee645ddf3 )
Co-authored-by: Julien Palard <julien@palard.fr>
Miss Islington (bot) [Mon, 11 Mar 2019 13:18:40 +0000 (06:18 -0700)]
bpo-36234: Add more tests to PosixUidGidTests (GH-12234)
test_posix.PosixUidGidTests:
* Add tests for invalid uid/gid type (str)
* Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32)
Initial patch written by David Malcolm.
Co-Authored-By: David Malcolm <dmalcolm@redhat.com>
(cherry picked from commit
876e82b4f32075e1bd21750bf852a103035fce23 )
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Miss Islington (bot) [Mon, 11 Mar 2019 00:37:36 +0000 (17:37 -0700)]
bpo-36176: Fix IDLE autocomplete & calltip popup colors. (GH-12262)
Prevent conflicts with Linux dark themes
(and slightly darken calltip background).
(cherry picked from commit
491ef53c1548c2b593d3c35d1e7bf25ccb443019 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Sun, 10 Mar 2019 17:30:35 +0000 (10:30 -0700)]
bpo-35647: Fix path check in cookiejar (GH-11436)
* Refactor cookie path check as per RFC 6265
* Add tests for prefix match of path
* Add news entry
* Fix set_ok_path and refactor tests
* Use slice for last letter
(cherry picked from commit
0e1f1f01058bd4a9b98cfe443214adecc019a38c )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Miss Islington (bot) [Sun, 10 Mar 2019 11:36:18 +0000 (04:36 -0700)]
bpo-21314: Add a FAQ entry about positional only parameters (GH-10641)
(cherry picked from commit
1aeeaeb79efa4de41f97b58547e23c2965ecabc5 )
Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com>
Miss Islington (bot) [Sun, 10 Mar 2019 11:12:12 +0000 (04:12 -0700)]
Fix padding on asyncio.IncompleteReadError docs (GH-12258)
(cherry picked from commit
11205b80309a01666eefee2301a244aa73a4c450 )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Sun, 10 Mar 2019 10:52:44 +0000 (03:52 -0700)]
bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252)
(cherry picked from commit
8b91edadc06dcb0d391a65d1ecdf07dcb429df1b )
Co-authored-by: sth <sth.dev@tejp.de>
Miss Islington (bot) [Sun, 10 Mar 2019 02:58:25 +0000 (18:58 -0800)]
bpo-35121: prefix dot in domain for proper subdomain validation (GH-10258) (GH-12261)
Don't send cookies of domain A without Domain attribute to domain B when domain A is a suffix match of domain B while using a cookiejar with `http.cookiejar.DefaultCookiePolicy` policy. Patch by Karthikeyan Singaravelan.
(cherry picked from commit
ca7fe5063593958e5efdf90f068582837f07bd14 )
Co-authored-by: Xtreak <tir.karthi@gmail.com>
Miss Islington (bot) [Sat, 9 Mar 2019 17:56:40 +0000 (09:56 -0800)]
Fix typos and improve grammar in threading.Barrier docstrings (GH-12210)
(cherry picked from commit
62fa51f1216e788310d3118f4259f1b4b1e529fe )
Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
Miss Islington (bot) [Fri, 8 Mar 2019 21:44:39 +0000 (13:44 -0800)]
bpo-35807: Upgrade ensurepip bundled pip and setuptools (GH-12189)
* Update pip to 19.0.3
* Update setuptools to 40.8.0
(cherry picked from commit
01e0f439f5009f37b95ab516e91906fcc7fcb8c3 )
Co-authored-by: Pradyun Gedam <pradyunsg@gmail.com>
Miss Islington (bot) [Fri, 8 Mar 2019 21:44:21 +0000 (13:44 -0800)]
bpo-35899: Fix Enum handling of empty and weird strings (GH-11891)
Co-authored-by: Maxwell <maxwellpxt@gmail.com>
Co-authored-by: Stéphane Wirtel <stephane@wirtel.be>
https://bugs.python.org/issue35899
(cherry picked from commit
8b914d2767acba3a9e78f1dacdc2d61dbfd7e304 )
Co-authored-by: Brennan D Baraban <34765317+bdbaraban@users.noreply.github.com>
Miss Islington (bot) [Fri, 8 Mar 2019 08:25:52 +0000 (00:25 -0800)]
bpo-34162: Add entries for idlelib/NEWS.txt (GH-12232)
(cherry picked from commit
8a1bab92915dd5c88832706c56af2f5611181d50 )
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Miss Islington (bot) [Fri, 8 Mar 2019 01:44:31 +0000 (17:44 -0800)]
Fix typo (double 'the') in CODEOWNERS (GH-12227)
(cherry picked from commit
f2320b37d9c85d8ddfc0c6afa81b77cd5f6e5ef2 )
Co-authored-by: Benedikt Werner <1benediktwerner@gmail.com>
Miss Islington (bot) [Thu, 7 Mar 2019 18:39:34 +0000 (10:39 -0800)]
bpo-36140: Fix an incorrect check in msidb_getsummaryinformation() (GH-12074)
(cherry picked from commit
bf94cc7b496a379e1f604aa2e4080bb70ca4020e )
Co-authored-by: Zackery Spytz <zspytz@gmail.com>
Miss Islington (bot) [Thu, 7 Mar 2019 17:44:53 +0000 (09:44 -0800)]
bpo-36108: Avoid failing the build on race condition in clean (GH-12217)
(cherry picked from commit
2f8f56499c20af70ff5037fdbc5d738e56d9eab0 )
Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Steve Dower [Thu, 7 Mar 2019 17:08:18 +0000 (09:08 -0800)]
bpo-36216: Add check for characters in netloc that normalize to separators (GH-12201)
Miss Islington (bot) [Thu, 7 Mar 2019 05:30:33 +0000 (21:30 -0800)]
Fix the documentation for set.copy() (GH-12176)
Remove 's' mention as there's no argument.
(cherry picked from commit
e942e7b5c91995ae1ad967ef2c0f116a5d8555de )
Co-authored-by: Andre Delfino <adelfino@gmail.com>
Miss Islington (bot) [Thu, 7 Mar 2019 05:24:55 +0000 (21:24 -0800)]
bpo-36185: Fix typo in Doc/c-api/objbuffer.rst. (GH-12204)
(cherry picked from commit
ecc161d1209bf6d21f0fd6bef28476eda7cdaf79 )
Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
Miss Islington (bot) [Wed, 6 Mar 2019 14:54:54 +0000 (06:54 -0800)]
bpo-36209: Fix typo on hashlib error message (GH-12194)
(cherry picked from commit
b71e28ea91259ca3914e2ff84fc126795ea6b848 )
Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
Victor Stinner [Tue, 5 Mar 2019 15:17:43 +0000 (16:17 +0100)]
[3.7] bpo-29571: Fix test_re.test_locale_flag() (GH-12178)
Use locale.getpreferredencoding() rather than locale.getlocale() to
get the locale encoding. With some locales, locale.getlocale()
returns the wrong encoding.
For example, on Fedora 29, locale.getlocale() returns ISO-8859-1
encoding for the "en_IN" locale, whereas
locale.getpreferredencoding() reports the correct encoding: UTF-8.
On Windows, set temporarily the LC_CTYPE locale to the user preferred
encoding to ensure that it uses the ANSI code page, to be consistent
with locale.getpreferredencoding().
Miss Islington (bot) [Tue, 5 Mar 2019 04:49:47 +0000 (20:49 -0800)]
Doc: Use `option` word for command line interface. (GH-12142)
For command line option, `option` is better than `parameter`.
(cherry picked from commit
0983fcd0d5bd00c6b0dd3040760226f67aa831cd )
Co-authored-by: NAKAMURA Osamu <osamu0329nakamura@users.noreply.github.com>
Miss Islington (bot) [Mon, 4 Mar 2019 19:41:31 +0000 (11:41 -0800)]
Fixed a missing . and a missing capital letter. (GH-12170)
(cherry picked from commit
7e9ce4c89e9a34ff84a89831812bc8b42d37ac1f )
Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
Miss Islington (bot) [Mon, 4 Mar 2019 16:17:30 +0000 (08:17 -0800)]
bpo-36179: Fix ref leaks in _hashopenssl (GH-12158)
Fix two unlikely reference leaks in _hashopenssl. The leaks only occur in
out-of-memory cases. Thanks to Charalampos Stratakis.
Signed-off-by: Christian Heimes <christian@python.org>
https://bugs.python.org/issue36179
(cherry picked from commit
b7bc283ab6a23ee98784400ebffe7fe410232a2e )
Co-authored-by: Christian Heimes <christian@python.org>
Miss Islington (bot) [Mon, 4 Mar 2019 15:06:36 +0000 (07:06 -0800)]
bpo-35198 Fix C++ extension compilation on AIX (GH-10437)
For C++ extensions, distutils tries to replace the C compiler with the
C++ compiler, but it assumes that C compiler is the first element after
any environment variables set. On AIX, linking goes through ld_so_aix,
so it is the first element and the compiler is the next element. Thus
the replacement is faulty:
ld_so_aix gcc ... -> g++ gcc ...
Also, it assumed that self.compiler_cxx had only 1 element or that
there were the same number of elements as the linker has and in the
same order. This might not be the case, so instead concatenate
everything together.
(cherry picked from commit
800d5cd75025876d79ab05980925a05d8e36b63d )
Co-authored-by: Kevin Adler <kadler@us.ibm.com>