Commit Graph

103066 Commits

Author SHA1 Message Date
Miss Islington (bot) fb58024688
bpo-36261: Improve example of the preamble field in email docs (GH-14751)
(cherry picked from commit 8efade91b1)

Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
2019-07-14 00:51:49 -07:00
Miss Islington (bot) d1524148cd
bpo-30088: Document that existing dir structure isn't verified by mailbox.Maildir (GH-1163)
Hi,

I've faced an issue w/ `mailbox.Maildir()`. The case is following:
1. I create a folder with `tempfile.TemporaryDirectory()`, so it's empty
2. I pass that folder path as an argument when instantiating `mailbox.Maildir()`
3. Then I receive an exception happening because "there's no such file or directory" (namely `cur`, `tmp` or `new`) during interaction with Maildir

**Expected result:** subdirs are created during `Maildir()` instance creation.

**Actual result:** subdirs are assumed as existing which leads to exceptions during use.

**Workaround:** remove the actual dir before passing the path to `Maildir()`. It will be created automatically with all subdirs needed.

**Fix:** This PR. Basically it adds creation of subdirs regardless of whether the base dir existed before.

https://bugs.python.org/issue30088
(cherry picked from commit e44184749c)

Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
2019-07-13 07:59:32 -07:00
Miss Islington (bot) 36494a9491
bpo-37580: Fix typo in http.cookiejar documentation (GH-14731)
[bpo-37580](https://bugs.python.org/issue37580): Markup typo in http.cookiejar doc

https://bugs.python.org/issue37580
(cherry picked from commit b5bbb8a740)

Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.de>
2019-07-13 03:23:10 -07:00
Miss Islington (bot) 184d06b354
Fix typo in re.escape documentation (GH-14722)
(cherry picked from commit fb6c1f8d3b)

Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
2019-07-13 01:40:54 -07:00
Miss Islington (bot) 71435f685c
closes bpo-37554: Remove `q:q` in os.rst documentation (GH-14692)
https://bugs.python.org/issue37554
(cherry picked from commit 7cbef72902)

Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
2019-07-11 10:48:00 -07:00
Miss Islington (bot) a2cf88efc4 bpo-36390: simplify classifyws(), rename it and add unit tests (GH-14500)
(cherry picked from commit 9b5ce62cac)

Co-authored-by: Tal Einat <taleinat@gmail.com>
2019-07-11 17:57:45 +03:00
Miss Islington (bot) d3747fd8fa bpo-34369: make kqueue.control() docs better reflect that timeout is positional-only (GH-9499)
(cherry picked from commit 79042ac434)

Co-authored-by: Tal Einat <taleinat@gmail.com>
2019-07-11 17:16:45 +03:00
Miss Islington (bot) 2847a75c21
Document default parameter of .seek() in the signature. (GH-14691)
(cherry picked from commit 2a3d4d9c53)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2019-07-10 19:49:37 -07:00
Miss Islington (bot) f54f062f68 bpo-26806: IDLE should run without docstrings (GH-14657) (GH-14678)
After fcf1d00, IDLE startup failed with python compiled without docstrings.
(cherry picked from commit 6aeb2fe606)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-09 15:16:44 -04:00
Ned Deily 4016cd533d Post release updates 2019-07-08 17:53:42 -04:00
Ned Deily d9012d6f23 Python 3.7.4
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAl0jhbcACgkQLTR+pqpl
 Qh0L/RAA0VudQZoa1URDmigDGODWg+LZ7Qf9Po5/9y2Zp3dytbxrt40zzo/Wonhi
 jbwbpo6umkpL0TlziN2biKSjbPzzvAlk0+Y+Iw3tXDGByqZ25GD4G3AE4nS/xbou
 oDmH6uLqgbvPRwFJYrFG3avplVpIj38MkScdbUQ+2pLPulcBnw52eFmzav2JuT8W
 WDNeLIRn8kCbjL7T+nLIU0YdE39E3OE3KMVWFZwNmkutNIm3YT0k+eMafbvOGKJQ
 iTZZ3d6miGqSILqQLiJjUzUneJemlvGJmOrtpJlhZiUjb8202MlhKDW2Bk6MWSKV
 DqTXapMw1lGCVd7zELMIK01pjpW0nqzo44tSzlqSMHoBrHDP7QNnhCin+jmHP/er
 h0J/K9+zkDCWc45a/KymDn2PpXeTwY2aIUcvW/2mQX6EeEm6dwq2Vvz8mjflRyYz
 Wd89Yi475bZfZQ4bxce1sFQ6a6b0jOShl21kbehCWtslvqc/5Y94brIinU7OTF1N
 xeHMPoM2mHprT/ftxmbgrrlISP7usYSgmDa/MuBOgH6cPxsZq+J9HkDtONgFe5UE
 OXV6ucQ4c+5uOCBHVdbC6iPFdJvJJ4Ok5LFQ9CjL3y61H+WT1mkqSZeFyqWHurJB
 ip8mScWh24FCQDH0PLMmDoS1BLUqq0ROFynXDb3Rycp1jz/fYqQ=
 =Hhx/
 -----END PGP SIGNATURE-----

Merge release engineering branch
2019-07-08 17:51:58 -04:00
Miss Islington (bot) 8b1135fc60
Doc: Fix example title. (GH-14639)
(cherry picked from commit 66b4150f6f)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-07-08 14:18:15 -07:00
Miss Islington (bot) 6f5574866c
Doc: Fix: Proper UpperCamelCase and lowercase. (GH-14644)
Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77)

Co-authored-by: Julien Palard <julien@palard.fr>
2019-07-08 14:13:59 -07:00
Ned Deily e09359112e 3.7.4 final 2019-07-08 14:03:50 -04:00
Miss Islington (bot) f2cbf41afc 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-08 12:43:43 -04:00
Ned Deily 87a918a003 [3.7] bpo-37500: update Misc/NEWS entries to mention revert 2019-07-08 12:39:12 -04:00
Pablo Galindo 4834c80d79 [3.7] bpo-37500: Revert commit 85ed1712e4 (GH-14605)
https://bugs.python.org/issue37500
2019-07-08 12:08:31 -04:00
Miss Islington (bot) bc0a6ced30
bpo-37513: Change ValueError to TypeError in an example in ctypes doc (GH-14615)
(cherry picked from commit f6cdd3ff68)

Co-authored-by: Hai Shi <shihai1992@gmail.com>
2019-07-07 08:45:59 -07:00
Miss Islington (bot) e841a54206
bpo-37478: Add missing 'and'. (GH-14631)
(cherry picked from commit a9b40e4546)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-06 19:49:39 -07:00
Miss Islington (bot) 1dd6507595 bpo-37478: Specify possible exceptions for os.chdir() (GH-14611) (GH-14630)
(cherry picked from commit 0717b4d9b3)

Co-authored-by: Kyle Stanley <aeros167@gmail.com>
2019-07-06 22:19:08 -04:00
Miss Islington (bot) 9c930d076a bpo-37487: Fix PyList_GetItem index description. (GH-14623) (GH-14625)
0 is a legal index.
(cherry picked from commit f8709e804d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-07-06 17:55:19 -04:00
Miss Islington (bot) d666217b26
bpo-26806: add 30 to the recursion limit in IDLE's shell (GH-13944)
This is done to compensate for the extra stack frames added by
IDLE itself, which cause problems when setting the recursion limit
to low values.

This wraps sys.setrecursionlimit() and sys.getrecursionlimit()
as invisibly as possible.
(cherry picked from commit fcf1d003bf)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2019-07-06 05:56:10 -07:00
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