Commit Graph

103294 Commits

Author SHA1 Message Date
Miss Islington (bot) d2c5677a4f
bpo-37149: Replace dead link for online Tkinter reference (GH-14616)
Also fix a name misspelling.
(cherry picked from commit 45bc61b971)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-05 23:37:38 -07:00
Miss Islington (bot) af5e62e9e2
closes bpo-37508: Fix name of type in memory.rst. (GH-14604)
(cherry picked from commit 39a5d17a7f)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2019-07-05 21:08:40 -07:00
Pablo Galindo 7d93effeb4 [3.7] bpo-37500: Revert commit 85ed1712e4 (GH-14605)
https://bugs.python.org/issue37500
2019-07-05 12:13:38 -07:00
Miss Islington (bot) d5a72923c2
Use OSError subclasses in os documentation (GH-14262)
(cherry picked from commit a55f75a6e3)

Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
2019-07-05 01:47:42 -07:00
Miss Islington (bot) 2d438fc0b7
bpo-37421: Fix multiprocessing get_temp_dir() finalizer (GH-14572)
Fix multiprocessing.util.get_temp_dir() finalizer: clear also the
'tempdir' configuration of the current process, so next call to
get_temp_dir() will create a new temporary directory, rather than
reusing the removed temporary directory.
(cherry picked from commit 9d40554e0d)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-07-04 03:45:58 -07:00
Miss Islington (bot) d7d9c9f7c2 bpo-37459: importlib docs improperly reference get_resource_loader() (GH-14568) (GH-14581)
* bpo-37459: importlib docs improperly reference get_resource_loader()
(cherry picked from commit b607d992e7)

Co-authored-by: aldwinaldwin <aldwinaldwin@users.noreply.github.com>
2019-07-03 18:27:59 -07:00
Miss Islington (bot) 6323ac1dd4
bpo-37441: Fix wrong PyErr_SetImportErrorSubclass signature in doc (GH-14453)
(cherry picked from commit aeecf38066)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2019-07-02 19:02:57 -07:00
Ned Deily 2e4411b3c5 Post release updates 2019-07-02 18:31:28 -04:00
Ned Deily a56138f147 Python 3.7.4rc2
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAl0bp8oACgkQLTR+pqpl
 Qh1VRw/8C5fGRJAWG0yiG4Kvi/kZMBefuSfDuQrIoIPze/T58lC3cVIuyUwNW+Re
 /IqvP9A+olcxQwfdpqm0fOIrDF4WlaexPdCzcDhN5heH1nsHrj+gEzL+B+TDyGNu
 TnOrlY851PbjawxRljVKUgGT7S+QQauDThnMIC5/QN16ItwT1pYKvgMvPNIreJlR
 CMGb55HHtHMMMUtFy6SV4T4Md4n5F2waeO5hbB5Ge7ZeNFrHwkKR5Vql4EwHrLR+
 Mspa1plw2FJN1PktN/aiHey0oH552JiH5TXxVG4CcopEO5R1+92XovEzEnYszI2P
 kJ/GejT+790V6qqImg/tOJATJ3uWl4ABLZAHLun9HVb2ICNxa/jk0TO6Zwh0wmE+
 QbbqVpQG2ltAfoeZ0cWpXUlytVFQFZKR/Yym0lS3NlT3p86lrI9ieOrEjunmjQv7
 uu1z6NB/VlfzoZKfd6A2IPqqrmu1bN1Hmc8TwdRTIznuvwi0VS7Ts70tnPgRRzIw
 iM2FejSTYNBLnHoEDoQZ7IULYvD46utMQ3gfCzoZjc1nafcW6e15HstpTxX92hZx
 woq/OV1/KnZF/JiFBebDLMN6A38GJcqpb+WdB7XX1LpcHI3PxL+ktb34UWRdyHhE
 stJBm1XN3/CughzwordIcqWJsTl+8IsEKkeFFcF7QeXgpZKEpkI=
 =JIBM
 -----END PGP SIGNATURE-----

Merge tag 'v3.7.4rc2' into 3.7
2019-07-02 18:23:54 -04:00
Miss Islington (bot) 024ea2170b
bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)
ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.

Short notations like '127.1' for '127.0.0.1' were already filtered out.

The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.

Signed-off-by: Christian Heimes <christian@python.org>

https://bugs.python.org/issue37463
(cherry picked from commit 477b1b2576)

Co-authored-by: Christian Heimes <christian@python.org>
2019-07-02 14:22:53 -07:00
Ned Deily 7f193e8969 3.7.4rc2 2019-07-02 14:51:09 -04:00
Christian Heimes 070fae6d0f bpo-37463: match_hostname requires quad-dotted IPv4 (GH-14499)
ssl.match_hostname() no longer accepts IPv4 addresses with additional text
after the address and only quad-dotted notation without trailing
whitespaces. Some inet_aton() implementations ignore whitespace and all data
after whitespace, e.g. '127.0.0.1 whatever'.

Short notations like '127.1' for '127.0.0.1' were already filtered out.

The bug was initially found by Dominik Czarnota and reported by Paul Kehrer.

Signed-off-by: Christian Heimes <christian@python.org>



https://bugs.python.org/issue37463
2019-07-02 14:42:08 -04:00
Victor Stinner 19b8d903b0
Revert "Remove unused imports in tests (GH-14518) (GH-14522)" (GH-14555)
This reverts commit e34b5f4d64.
2019-07-02 14:42:39 +02:00
Jakub Kulík c53173aa00 bpo-37335: Fix test_c_locale_coercion to handle any ASCII alias (GH-14449)
Fix unexpected ASCII aliases in locale coercion tests: normalize encoding
names with codecs.lookup(encoding).name.
2019-07-02 12:46:00 +02:00
Miss Islington (bot) dcc0eb3796 bpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)
Under some conditions the earlier fix for bpo-18075, "Infinite recursion
tests triggering a segfault on Mac OS X", now causes failures on macOS
when attempting to change stack limit with resource.setrlimit
resource.RLIMIT_STACK, like regrtest does when running the test suite.
The reverted change had specified a non-default stack size when linking
the python executable on macOS.  As of macOS 10.14.4, the previous
code causes a hard failure when running tests, although similar
failures had been seen under some conditions under some earlier
systems.  Reverting the change to the interpreter stack size at link
time helped for release builds but caused some tests to fail when
built --with-pydebug.  Try the opposite approach: continue to build
the interpreter with an increased stack size on macOS and remove
the failing setrlimit call in regrtest initialization.  This will
definitely avoid the resource.RLIMIT_STACK error and should have
no, or fewer, side effects.
(cherry picked from commit 5bbbc733e6)

Co-authored-by: Ned Deily <nad@python.org>
2019-07-02 03:40:38 -04:00
Miss Islington (bot) bf82cd3124
bpo-34602: Avoid failures setting macOS stack resource limit (GH-14546)
Under some conditions the earlier fix for bpo-18075, "Infinite recursion
tests triggering a segfault on Mac OS X", now causes failures on macOS
when attempting to change stack limit with resource.setrlimit
resource.RLIMIT_STACK, like regrtest does when running the test suite.
The reverted change had specified a non-default stack size when linking
the python executable on macOS.  As of macOS 10.14.4, the previous
code causes a hard failure when running tests, although similar
failures had been seen under some conditions under some earlier
systems.  Reverting the change to the interpreter stack size at link
time helped for release builds but caused some tests to fail when
built --with-pydebug.  Try the opposite approach: continue to build
the interpreter with an increased stack size on macOS and remove
the failing setrlimit call in regrtest initialization.  This will
definitely avoid the resource.RLIMIT_STACK error and should have
no, or fewer, side effects.
(cherry picked from commit 5bbbc733e6)

Co-authored-by: Ned Deily <nad@python.org>
2019-07-02 00:38:36 -07:00
Miss Islington (bot) 6348364ba5 Put pyexpatns.h include back. bpo-37437 (GH-14539)
(cherry picked from commit 2cd07920bb)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-02 03:03:00 -04:00
Miss Islington (bot) f3130fab9c
Put pyexpatns.h include back. bpo-37437 (GH-14539)
(cherry picked from commit 2cd07920bb)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-01 22:29:05 -07:00
Ned Deily 329a1d8954 Minor updates to macOS installer screens for 3.7.4 2019-07-01 23:49:36 -04:00
Miss Islington (bot) f97eb883d8 [3.7] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH-14496)
Post-handshake authentication is required for conditional client cert authentication with TLS 1.3.


https://bugs.python.org/issue37440
(cherry picked from commit d1bd6e79da)


Co-authored-by: Christian Heimes <christian@python.org>


https://bugs.python.org/issue37440
2019-07-01 22:29:17 -04:00
Miss Islington (bot) 5b45fb0a44 [3.7] bpo-37428: Don't set PHA verify flag on client side (GH-14421) (GH-14493)
SSLContext.post_handshake_auth = True no longer sets
SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the
option is documented as ignored for clients, OpenSSL implicitly enables cert
chain validation when the flag is set.

Signed-off-by: Christian Heimes <christian@python.org>



https://bugs.python.org/issue37428
(cherry picked from commit f0f5930ac8)


Co-authored-by: Christian Heimes <christian@python.org>


https://bugs.python.org/issue37428
2019-07-01 22:27:58 -04:00
Miss Islington (bot) 3e24dd52bb bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
(cherry picked from commit 95da310078)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-01 22:27:07 -04:00
Steve Dower a88652e488 bpo-37369: Fix path handling when python.exe is used as a symlink (GH-14461) 2019-07-01 22:26:13 -04:00
Steve Dower 57eba3aff1 bpo-37369: Fix venv and test symlinking (GH-14456) 2019-07-01 22:25:25 -04:00
Steve Dower 3c34ea97a3 bpo-37369: Fixes path for sys.executable when running from the Microsoft Store (GH-14450) 2019-07-01 22:24:26 -04:00
Miss Islington (bot) cc0bf97d61 closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)
(cherry picked from commit 3b03b09fc9)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-01 22:23:08 -04:00
Steve Dower 3d9963744a Improve Windows commands in tutorial (GH-14401) 2019-07-01 22:22:26 -04:00
Miss Islington (bot) 30c2ae4dcf [3.7] bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304) (GH-14369)
* bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304)

* The UTF-8 incremental decoders fails now fast if encounter
  a sequence that can't be handled by the error handler.
* The UTF-16 incremental decoders with the surrogatepass error
  handler decodes now a lone low surrogate with final=False.
(cherry picked from commit 894263ba80)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-07-01 22:21:22 -04:00
Miss Islington (bot) c58fc3af75 bpo-35360: Update Windows builds to use SQLite 3.28.0 (GH-14179)
(cherry picked from commit 7fd2ba354e)

Co-authored-by: animalize <animalize@users.noreply.github.com>
2019-07-01 22:20:35 -04:00
Miss Islington (bot) e90815b3b1 bpo-32627: Fix compile error when conflicting `_uuid` headers included (GH-11751)
(cherry picked from commit 6ffd9b05df)

Co-authored-by: ziheng <zihenglv@gmail.com>
2019-07-01 22:19:49 -04:00
Steve Dower 9ad5e9edea bpo-37156: Fix libssl DLL tag in MSI sources (GH-14219) 2019-07-01 22:17:29 -04:00
Miss Islington (bot) 844a9d64a4 bpo-37470: Document more clearly the error handling for QueueHandler.emit(). (GH-14532) (GH-14534)
(cherry picked from commit 0f4e813282)
2019-07-01 20:51:20 +01:00
Miss Islington (bot) b0ab95bbe7 bpo-37469: Document usability of SimpleQueue with QueueHandler and QueueListener. (GH-14521) (GH-14526)
(cherry picked from commit e6b64b756f)
2019-07-01 19:52:57 +01:00
Victor Stinner e34b5f4d64
Remove unused imports in tests (GH-14518) (GH-14522)
(cherry picked from commit 8f4ef3b019)
2019-07-01 20:02:39 +02:00
Victor Stinner 8cbffc4d96
bpo-37467: Fix PyErr_Display() for bytes filename (GH-14504) (GH-14515)
Fix sys.excepthook() and PyErr_Display() if a filename is a bytes
string. For example, for a SyntaxError exception where the filename
attribute is a bytes string.

Cleanup also test_sys:

* Sort imports.
* Rename numruns global var to INTERN_NUMRUNS.
* Add DisplayHookTest and ExceptHookTest test case classes.
* Don't save/restore sys.stdout and sys.displayhook using
  setUp()/tearDown(): do it in each test method.
* Test error case (call hook with no argument) after the success case.

(cherry picked from commit f9b7457bd7)
2019-07-01 17:41:38 +02:00
Miss Islington (bot) 45c10da409
bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)
bdist_wininst depends on MBCS codec, unavailable on non-Windows,
and bdist_wininst have not worked since at least Python 3.2, possibly
never on Python 3.

Here we document that bdist_wininst is only supported on Windows,
and we mark it unsupported otherwise to skip tests.

Distributors of Python 3 can now safely drop the bdist_wininst .exe files
without the need to skip bdist_wininst related tests.
(cherry picked from commit 72cd653c4e)

Co-authored-by: Miro Hrončok <miro@hroncok.cz>
2019-07-01 05:42:08 -07:00
Miss Islington (bot) 471d785dc7 bpo-32934: Clarified meaning of 'capacity' for BufferingHandler and MemoryHandler. (GH-14498) (GH-14508)
(cherry picked from commit 84de34e39e)
2019-07-01 13:11:37 +01:00
Miss Islington (bot) 6be91102f7
[3.7] bpo-37440: Enable TLS 1.3 post-handshake auth in http.client (GH-14448) (GH-14496)
Post-handshake authentication is required for conditional client cert authentication with TLS 1.3.


https://bugs.python.org/issue37440
(cherry picked from commit d1bd6e79da)


Co-authored-by: Christian Heimes <christian@python.org>


https://bugs.python.org/issue37440
2019-07-01 00:07:52 -07:00
Miss Islington (bot) cf7617460a
[3.7] bpo-37428: Don't set PHA verify flag on client side (GH-14421) (GH-14493)
SSLContext.post_handshake_auth = True no longer sets
SSL_VERIFY_POST_HANDSHAKE verify flag for client connections. Although the
option is documented as ignored for clients, OpenSSL implicitly enables cert
chain validation when the flag is set.

Signed-off-by: Christian Heimes <christian@python.org>



https://bugs.python.org/issue37428
(cherry picked from commit f0f5930ac8)


Co-authored-by: Christian Heimes <christian@python.org>


https://bugs.python.org/issue37428
2019-06-30 23:51:40 -07:00
Miss Islington (bot) e2e41cd114
bpo-30754: Document textwrap.dedent blank line behavior. (GH-14469)
* Added documentation for textwrap.dedent behavior.
* Remove an obsolete note about pre-2.5 behavior from the docstring.
(cherry picked from commit eb97b9211e)

Co-authored-by: tmblweed <tmblweed@users.noreply.github.com>
2019-06-29 21:38:11 -07:00
Miss Islington (bot) ffa419ad00
bpo-37437: Pass -Wno-unreachable-code when compiling expat. (GH-14470)
(cherry picked from commit 95da310078)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-06-29 16:16:44 -07:00
Steve Dower db4eb2c57d
bpo-37369: Fix path handling when python.exe is used as a symlink (GH-14461) 2019-06-28 21:30:44 -07:00
Steve Dower ed4657bd28
bpo-37369: Fix venv and test symlinking (GH-14456) 2019-06-28 11:41:55 -07:00
Steve Dower db4d7ddb01
bpo-37369: Fixes path for sys.executable when running from the Microsoft Store (GH-14450) 2019-06-28 10:02:13 -07:00
Miss Islington (bot) 99f2f85177
bpo-37432: Doc: Fix signature of PyObject_Del() (GH-14430)
(cherry picked from commit b4bee03087)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2019-06-28 02:16:30 -07:00
Miss Islington (bot) 87cc66877c
closes bpo-37437: Update vendorized expat to 2.2.7. (GH-14436)
(cherry picked from commit 3b03b09fc9)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-06-27 21:15:09 -07:00
Miss Islington (bot) 65e187239a
closes bpo-37420: Handle errors during iteration in os.sched_setaffinity. (GH-14414)
(cherry picked from commit 45a30af109)

Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
2019-06-27 09:30:41 -07:00
Miss Islington (bot) b950cdb4be bpo-29412: Fix indexError when parsing a header value ending unexpectedly (GH-14387) (GH-14412)
* patched string index out of range error in get_word function of _header_value_parser.py and created tests in test__header_value_parser.py for CFWS.
* Raise HeaderParseError instead of continuing when parsing a word.
(cherry picked from commit 7213df7bbf)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
2019-06-26 15:05:04 -07:00
Serhiy Storchaka 6ef103fbdb
[3.7] bpo-37163: dataclasses.replace() now supports the field named "obj". (GH-13877) (GH-14405)
(cherry picked from commit f5b89af)
2019-06-26 23:03:08 +03:00
Miss Islington (bot) 814c7aefc2
bpo-37411: Rewrite test_wsgiref.testEnviron() (GH-14394)
Fix test_wsgiref.testEnviron() to no longer depend on the environment
variables (don't fail if "X" variable is set).

testEnviron() now overrides os.environ to get a deterministic
environment. Test full TestHandler.environ content: not only a few
selected variables.
(cherry picked from commit 5150d32792)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-06-26 12:37:57 -07:00