Commit Graph

102530 Commits

Author SHA1 Message Date
Miss Islington (bot) 89e7979f06
Fix typos in test_faulthandler skipIfs for ubsan. (GH-11386)
(cherry picked from commit d6f45b23a5)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2018-12-30 20:34:03 -08:00
Miss Islington (bot) d82344378a
bpo-35550: Fix incorrect Solaris define guards (GH-11275)
Python source code uses on several places ifdef sun or defined(sun) without the underscores, which is not standard compliant and shouldn't be used.

Defines should check for __sun instead. Reference: http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_systemGH-Solaris

https://bugs.python.org/issue35550
(cherry picked from commit 6f9bc72c79)

Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
2018-12-30 18:39:00 -08:00
Miss Islington (bot) e404299057
Cleanup test_faulthandler sanitizer skip logic. (GH-11381)
Also skip the same tests when using the undefined behavior sanitizer
as they much with the output.

Updates a regex in another test to use multi-line mode so that the ubsan
buildbot should pass again rather than also adding a skip to that one.
(cherry picked from commit 30e023256a)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2018-12-30 18:28:11 -08:00
Miss Islington (bot) a144feeb7e bpo-28503: Use crypt_r() when available instead of crypt() (GH-11373) (GH-11376)
Use crypt_r() when available instead of crypt() in the crypt module.

As a nice side effect: This also avoids a memory sanitizer flake as clang msan doesn't know about crypt's internal libc allocated buffer.
(cherry picked from commit 387512c7ec)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2018-12-30 17:59:52 -08:00
Miss Islington (bot) 01b9664740 bpo-35214: MSan workarounds for socket, time, and test_faulthandler. (GH-11375) (GH-11378)
Add Clang Memory Sanitizer build instrumentation to work around
false positives from the socket and time modules as well as skipping
a couple test_faulthandler tests.
(cherry picked from commit b474e6774d)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2018-12-30 17:59:19 -08:00
Miss Islington (bot) c74061d49b
Fix typo in documentation of AbstractEventLoopPolicy.set_child_watcher() (GH-11369)
`set_child_watcher()` *sets* the watcher.
(cherry picked from commit 1b29c03c95)

Co-authored-by: sth <sth.dev@tejp.de>
2018-12-30 14:07:05 -08:00
Miss Islington (bot) d2694d4768
bpo-35598: IDLE: Switch config_key dialog to ttk widgets (GH-11365)
(cherry picked from commit 4bd79c38ef)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-30 12:30:09 -08:00
Miss Islington (bot) 34aadec448
bpo-35598: IDLE: Increase test coverage for config_key.py (GH-11360)
(cherry picked from commit b0a6196ffd)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-29 20:39:27 -08:00
Miss Islington (bot) fe06646d18
bpo-35602: Make sure the transport is always closed in SelectorEventLoopUnixSockSendfileTests (GH-11338)
There is a race condition in SelectorEventLoopUnixSockSendfileTests that causes the prepare() method return a non connected server protocol, making the cleanup() method skips the correct handling of the transport. This commit makes prepare() always return a connected server protocol that can always be cleaned up correctly.
(cherry picked from commit d51324a2f5)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2018-12-29 11:38:24 -08:00
Miss Islington (bot) 0f756f7f56
Make sure file object is close if socket.create_connection fails (GH-11334)
The problem affects _testWithTimeoutTriggeredSend in test_socket.py.
(cherry picked from commit 1f511e1af0)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2018-12-28 18:12:39 -08:00
Miss Islington (bot) 8f9228dd3a
bpo-35601: Alleviate race condition when waiting for SIGALRM in test_asyncio (GH-11337)
There is a race condition regarding signal delivery in test_signal_handling_args for
test_asyncio.test_events.KqueueEventLoopTests. The signal can be received at any moment outside the time window provided in the test. The fix is to wait for the signal to be received instead with a bigger timeout.
(cherry picked from commit 5471420faa)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2018-12-28 18:01:00 -08:00
Miss Islington (bot) 95dc4577c3
bpo-34055: Revert deletion of line in IDLE's PyShell (GH-11346)
The attribute is still used in other modules.
(cherry picked from commit 4bc246786f)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-12-28 17:19:32 -08:00
Miss Islington (bot) b716c716b5
bpo-28097: IDLE - Add Previous/Next History to Shell menu (GH-11325)
(cherry picked from commit c0381aaea4)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-28 12:29:44 -08:00
Miss Islington (bot) 61775c313f
IDLE: Create function to update menu item state. (GH-11343)
This will be needed for other menu items.  Change outwin to call the function instead of updating the menu item directly.
(cherry picked from commit 804a5d94b6)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-28 10:29:06 -08:00
Miss Islington (bot) 098bb249e9
bpo-35591: IDLE Find Selection now works when selection not found (GH-11339)
(cherry picked from commit c465682718)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-12-28 02:31:34 -08:00
Miss Islington (bot) 4c7f34f73d
bpo-35598: IDLE: Update config_key.py with PEP8 names (GH-11330)
A few other changes make the code easier to follow.
(cherry picked from commit 55698cc395)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-27 20:08:03 -08:00
Miss Islington (bot) bbf695441a
bpo-35596: Fix vcruntime140.dll being added to embeddable distro multiple times. (GH-11329)
https://bugs.python.org/issue35596
(cherry picked from commit 59c2aa25ff)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-27 17:04:07 -08:00
Miss Islington (bot) 705b599803 Speed-up building enums by value, e.g. http.HTTPStatus(200) (GH-11318) (GH-11324)
bpo-35585: Speed up enum by-value lookup
(cherry picked from commit 34ae04f74d)

Co-authored-by: Andrew Svetlov <andrew.svetlov@gmail.com>
2018-12-26 22:48:55 +02:00
Miss Islington (bot) dcf14d1a98
bpo-35579: Fix typo in in asyncio-task documentation (GH-11321)
https://bugs.python.org/issue35579

https://bugs.python.org/issue35579
(cherry picked from commit 3a81076bbf)

Co-authored-by: Vaibhav Gupta <vaibhgupt199@gmail.com>
2018-12-26 06:53:03 -08:00
Miss Islington (bot) 793ebdfc55 Redo PR 785 -- Add cross reference links (GH-11319) (#11320)
(cherry picked from commit 56edf3a4b1)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-12-25 18:00:20 -08:00
Serhiy Storchaka 74d914ecd5
[3.7] bpo-35578: Add an example file for testing Argument Clinic converters. (GH-11306) (GH-11311)
(cherry picked from commit 837c7dc)
2018-12-25 11:20:08 +02:00
Miss Islington (bot) 7085150cdc
Minor grammar improvement in types.rst (GH-11308)
defines utility function -> defines utility functions

Reported in https://mail.python.org/pipermail/docs/2018-December/038693.html
(cherry picked from commit 95327bc80d)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
2018-12-24 16:41:00 -08:00
Miss Islington (bot) 0e0cc553ab
bpo-35208: Fix IDLE Squeezer line counting (GH-10449)
(cherry picked from commit 44a79cc5b3)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2018-12-24 04:21:11 -08:00
Ned Deily 4cb468d3a7 Post release bump 2018-12-24 04:29:05 -05:00
Ned Deily bb8b5314dc Merge release engineering branch '372final' into 3.7 2018-12-24 04:25:49 -05:00
Ned Deily 6c261c4415 Python 3.7.2
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlwgAIkACgkQLTR+pqpl
 Qh3IyhAAlS5rZLfk0KrBG01T7a/i/JJ8QILcy5bbfFeQ46xRUHk3yPtp05oMd1u/
 zjcmD4UxExe2/dJGtmXfp86ZfzmvhlAfifzF0OV0G0cbXKnEtwHML1cPT/1mbyG3
 GcKnk1dO7OUR9IMw0KlYZpEfUHNPHKd/HrByJ7Tmd0FJxe8YExIBiyFWZFNds9cV
 cRo8bPfl/AawMN/K1ushwpyl1H0x3Qg+4huC4GRdrN6yLd/hnRFAUVNtft5trChy
 rNRRyk+Z1DPJZydu1mCpFip5bzSIdYQH1W/73gnBRMfG81NPgmkt9zLk0L3UB/gk
 24S2ChASdNKNSOBUiu/7J7RuSN05kIj4g2XH65gdKY+6u6nezfj3qvWMVrKkNa97
 lGOKc5KIjMaGRWGto0tsvSClM4FmtC5LDSnpGFA2e+7RzZJFj5Svy8E9jiUfbyLC
 yECdP21WIInHWWxWG3DD6ksVsyg197uoFm66eshrgnRlRQLzptrKe2WoTDkk6eTy
 VFJd638aLTxSKphfZI7SCiAU1Fm2Q8vUcTVKTY+cnd918aBsB2eEtLW8dzlFMzow
 JK+jjzqZQf1VjasTrPbiNrtt/7KxxzVcJbCu8OYRXUvjWf5gREYCAWT15sWpNuEH
 TCsgkCThQMdaFgqoCNYuzPkSx7k7c0zsaqVSHDCTvgHfrTJDLPU=
 =NTON
 -----END PGP SIGNATURE-----

Merge tag 'v3.7.2' into 3.7
2018-12-24 04:24:38 -05:00
Ned Deily 986a9ab09d Revert "bpo-35402: Update macOS installer to use Tcl 8.6.9 / Tk 8.6.9.1 (GH-11101)"
This reverts commit 3b9a0186c4.

Due to regressions found with using Tk 8.6.9.1, the python.org macOS
installers for 3.6.8 and 3.7.2 are shipping with Tcl/Tk 8.6.8 as used
in previous releases.
2018-12-24 02:04:44 -05:00
Miss Islington (bot) 00a48d57df bpo-34764: improve docs example of iter() with sentinel value (GH-11222) (#11301)
(cherry picked from commit d378b1f8ed)

Co-authored-by: Chris Rands <c_rands100@hotmail.com>
2018-12-23 21:19:57 -08:00
Miss Islington (bot) bc64123335 bpo-35566: Add links to annotation glossary term (GH-11291) (GH-11302) 2018-12-23 21:18:39 -08:00
Miss Islington (bot) d4f7616da3 bpo-35555: IDLE: Gray out Code Context menu item on non-editors (GH-11282) (GH-11300)
The Code Context menu item only works on Editor windows so disable it for others.
(cherry picked from commit 8874f511e7)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-23 17:14:59 -05:00
Ned Deily 9a3ffc0492 3.7.2final 2018-12-23 16:37:36 -05:00
Miss Islington (bot) 92f9024299 bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)
`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257
(cherry picked from commit 44a3ee07e3)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-23 15:53:07 -05:00
Miss Islington (bot) 26c94c3266 [3.7] Removed dangling `since Python` at the end of library/xml.rst. (GH-11201) (GH-11231)
(cherry picked from commit 82d73554e4)


Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
2018-12-23 15:48:39 -05:00
Miss Islington (bot) 3d4b4b80f2
bpo-35257: fix broken BLDSHARED - needs LDFLAGS too (GH-11297)
`BLDSHARED` needs to have both `LDFLAGS` and `LDFLAGS_NODIST`, not just `LDFLAGS_NODIST`; `PY_CORE_LDFLAGS` provides both.  For example, as it stands now with just `LDFLAGS_NODIST`, macOS universal builds are broken as the necessary `-arch` flags are no longer passed to the standard library extension module link step from `setup.py` resulting in extension modules being single architecture only.

https://bugs.python.org/issue35257
(cherry picked from commit 44a3ee07e3)

Co-authored-by: Ned Deily <nad@python.org>
2018-12-23 12:48:00 -08:00
Miss Islington (bot) ffc106c596 bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
(cherry picked from commit 3e8f962e63)

Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
2018-12-23 15:46:57 -05:00
Myles Borins 25ee15a15c [3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)
(cherry picked from commit 0854b92cd2)
2018-12-23 15:46:40 -05:00
Miss Islington (bot) 4db9a3fffa bpo-35482: Fixes HTML escaping in CHM index and build location of NEWS file (GH-11224)
(cherry picked from commit afe17a7bee)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-23 15:45:48 -05:00
Victor Stinner f14087a4a9 bpo-35257: Avoid leaking LTO linker flags into distutils (GH-10900) (GH-11264)
When compiling 3rd party C extensions, the linker flags used by the
compiler for the interpreter and the stdlib modules, will get
leaked into distutils. In order to avoid that, the PY_CORE_LDFLAGS
and PY_LDFLAGS_NODIST are introduced to keep those flags separated.

(cherry picked from commit cf10a750f4)
2018-12-23 15:45:10 -05:00
Julien Palard 371ca0bb8f bpo-35472: Doc: For Python 3.7 Sphinx 1.6.6 is enough. (GH-11192) 2018-12-23 15:41:55 -05:00
Miss Islington (bot) 7e4e4bd2b8 bpo-35499: make profile-opt don't override CFLAGS_NODIST (GH-11164) (GH-11179)
"make profile-opt" no longer replaces CFLAGS_NODIST with CFLAGS. It
now adds profile-guided optimization (PGO) flags to CFLAGS_NODIST,
existing CFLAGS_NODIST flags are kept.
(cherry picked from commit 640ed520dd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-12-23 15:39:06 -05:00
Miss Islington (bot) a58c8442f1 Document that dict.fromkeys accepts any iterable for keys (GH-10998) (GH-11294)
(cherry picked from commit f06fba5965)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2018-12-22 20:56:01 -08:00
Miss Islington (bot) 48a206978c
bpo-22703: IDLE: Improve Code Context and Zoom Height menu labels (GH-11214)
The Code Context menu label now toggles between Show/Hide Code Context.
 The Zoom Height menu now toggles between Zoom/Restore Height.
 Zoom Height has moved from the Window menu to the Options menu.

https://bugs.python.org/issue22703
(cherry picked from commit c1b4b0f616)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-21 22:41:50 -08:00
Miss Islington (bot) c046d6b618
bpo-11566: Extension build errors on Windows for _hypot (GH-11283)
This addresses C extension build errors related to an undefined _hypot
symbol when building with the Microsoft Visual C++ Compiler for Python
2.7 [1] or MinGWPy [2]. It also addresses errors when building a C++
extension with MinGWPy and C++11 from cmath, 'error "::hypot' has not
been declared'

[1] https://www.microsoft.com/en-us/download/details.aspx?id=44266
[2] https://mingwpy.github.io/
(cherry picked from commit 87667c54c6)

Co-authored-by: Matt McCormick <matt@mmmccormick.com>
2018-12-21 17:56:58 -08:00
Miss Islington (bot) 97d9d90821
Fix typo in socketserver docstring (GH-11252)
Fix typo in the docstring of `service_actions`.
serve_forver -> serve_forever
(cherry picked from commit 6ded8986e0)

Co-authored-by: Christopher Hunt <chrahunt@gmail.com>
2018-12-21 15:01:34 -08:00
Miss Islington (bot) dd3b04ea8c
Enable signing Windows builds with SHA1 environment variable (GH-11279)
(cherry picked from commit d3bbc52413)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-12-21 14:04:18 -08:00
Miss Islington (bot) c53e5f6ab9 Fixed missing colun in library/sys.po (GH-11153)
GH- Fixed missing colun in library/sys.po

[bpo-35492](https://bugs.python.org/issue35492): Fixed missing colun in library/sys.po
(cherry picked from commit cb0f5e29e3)

Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
2018-12-21 13:57:10 -05:00
Miss Islington (bot) aa7922ae79
[3.7] Removed dangling `since Python` at the end of library/xml.rst. (GH-11201) (GH-11231)
(cherry picked from commit 82d73554e4)


Co-authored-by: Jules Lasne (jlasne) <jlasne@student.42.fr>
2018-12-21 10:22:17 -08:00
Miss Islington (bot) 26ab036098
bpo-33830: Fix an example in http.client docs for 404. (GH-7780)
(cherry picked from commit f0af4c54e3)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
2018-12-21 07:41:01 -08:00
Miss Islington (bot) d1e7175887
bpo-35259: Limit `Py_FinalizeEx()` to `Py_LIMITED_API >= 0x03060000`. (GH-10620)
(cherry picked from commit 3e8f962e63)

Co-authored-by: Arthur Neufeld <aneufeld@seinesoftware.ca>
2018-12-20 13:39:35 -08:00
Myles Borins c7b7a43cd8 [3.7] bpo-31715 Add mimetype for extension .mjs (GH-3908) (GH-10977)
(cherry picked from commit 0854b92cd2)
2018-12-20 15:26:02 -05:00