| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
| |
(cherry picked from commit f8d4cc7dbbf54b9c5435c3080582a4aa421a067d)
Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As far as I can tell, this infinite loop would be triggered if:
1. The value being folded contains a single word (no spaces) longer than
max_line_length
2. The max_line_length is shorter than the encoding's name + 9
characters.
bpo-36564: https://bugs.python.org/issue36564
(cherry picked from commit f69d5c61981ea97d251db515c7ff280fcc17182d)
Co-authored-by: Paul Ganssle <pganssle@users.noreply.github.com>
|
|
|
|
|
|
| |
Replace backquotes with POSIXy command substitution in example.
(cherry picked from commit 6a61714cde7037cd9a1bcc11ecccb17fe3081295)
Co-authored-by: David Jones <drj@pobox.com>
|
|
|
|
|
|
|
|
| |
Add a brief note to indicate that any new required attributes must go through the PEP process.
https://bugs.python.org/issue37284
(cherry picked from commit 52693c10e82622d883433b779a45d0bd792f17ed)
Co-authored-by: Giovanni Cappellotto <gcappellotto@fb.com>
|
|
|
|
|
|
|
|
| |
ast.parameters nodes (GH-14778)
https://bugs.python.org/issue37593
(cherry picked from commit cd6e83b4810549c308ab2d7315dbab526e35ccf6)
Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-9825)
The documentation says that the fp parameter to plistlib.load "should be a
readable and binary file object" but the docstring only mentions that it
should be readable. Similarly, plistlib.dump's docstring only mentions
"writable". This commit clarifies that fp should also be binary.
https://docs.python.org/3/library/plistlib.htmlGH-plistlib.load
https://docs.python.org/3/library/plistlib.htmlGH-plistlib.dump
(cherry picked from commit 0d4f4352efecf1b044c88e234e71774fe04b7d6c)
Co-authored-by: Collin Styles <collingstyles@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 40d2226a69aed6252023d365731bd4ed39dc1a4f)
Co-authored-by: Hai Shi <shihai1992@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 68c74d05c1fdaf59d8711431884af975ac2ac5f8)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
|
|
|
|
|
| |
Co-Authored-By: Kyle Stanley <aeros167@gmail.com>
(cherry picked from commit 6b929580eb018cfef386db7f7f66b3a58532eada)
Co-authored-by: Michele Angrisano <michele.angrisano@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 8efade91b12a13102a09a3856179021e579da5e9)
Co-authored-by: Carl Bordum Hansen <carl@bordum.dk>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The `allow_abbrev` option for ArgumentParser is documented and intended to disable support for unique prefixes of --options, which may sometimes be ambiguous due to deferred parsing.
However, the initial implementation also broke parsing of grouped short flags, such as `-ab` meaning `-a -b` (or `-a=b`). Checking the argument for a leading `--` before rejecting it fixes this.
This was prompted by pytest-dev/pytestGH-5469, so a backport to at least 3.8 would be great :smile:
And this is my first PR to CPython, so please let me know if I've missed anything!
https://bugs.python.org/issue26967
(cherry picked from commit dffca9e925ee5c3072663cbe8d4d4768406d5307)
Co-authored-by: Zac Hatfield-Dodds <Zac-HD@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 e44184749c2fd0921867ea5cd20b8e226c2146c2)
Co-authored-by: Sviatoslav Sydorenko <wk@sydorenko.org.ua>
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-14726)
Returns NotImplemented for timedelta and time in __eq__ for different types in Python implementation, which matches the C implementation.
This also adds tests to enforce that these objects will fall back to the right hand side's __eq__ and/or __ne__ implementation.
bpo-37579
(cherry picked from commit e6b46aafad3427463d6264a68824df4797e682f1)
Co-authored-by: Xtreak <tir.karthi@gmail.com>
|
|
|
|
|
|
|
|
| |
[bpo-37580](https://bugs.python.org/issue37580): Markup typo in http.cookiejar doc
https://bugs.python.org/issue37580
(cherry picked from commit b5bbb8a740eaf46c78d122185de8b072e9deea2a)
Co-authored-by: Milan Oberkirch <milan.oberkirch@geops.de>
|
|
|
|
|
| |
(cherry picked from commit 994a3b88dca852696351358e2743313e546b5ecf)
Co-authored-by: Steve Dower <steve.dower@python.org>
|
|
|
|
|
| |
(cherry picked from commit fb6c1f8d3b116c7e3e3f814bf750d984a2f2ecbf)
Co-authored-by: Robert DiPietro <rdipietro@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit b9a0376b0dedf16a2f82fa43d851119d1f7a2707)
Co-authored-by: gescheit <gescheit@yandex-team.ru>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
importlib examples (GH-14723) (GH-14724)
Fix importlib examples to insert any newly created modules via importlib.util.module_from_spec() immediately into sys.modules instead of after calling loader.exec_module().
Thanks to Benjamin Mintz for finding the bug.
https://bugs.python.org/issue37521
(cherry picked from commit 0827064c955f88df8ba5621d8e3d81be3cfc26a9)
Co-authored-by: Brett Cannon <54418+brettcannon@users.noreply.github.com>
https://bugs.python.org/issue37521
|
|
|
|
|
|
|
|
| |
With the addition of shared memory into Python 3.8, we now have three tests failing on Solaris, namely `test_multiprocessing_fork`, `test_multiprocessing_forkserver` and `test_multiprocessing_spawn`. The reason seems to be incorrect name handling which results in two slashes being prepended.
https://bugs.python.org/issue37558
(cherry picked from commit 4737265622251756a9480ab84af2442b6b986850)
Co-authored-by: Jakub Kulík <Kulikjak@gmail.com>
|
|
|
|
|
|
| |
https://bugs.python.org/issue37554
(cherry picked from commit 7cbef72902f32866a416ca6c4e732af4541951b8)
Co-authored-by: Mariatta <Mariatta@users.noreply.github.com>
|
|
|
|
|
| |
(cherry picked from commit 9b5ce62cac27fec9dea473865d79c2c654312957)
Co-authored-by: Tal Einat <taleinat@gmail.com>
|
|
|
|
|
|
|
| |
positional-only (GH-9499)
(cherry picked from commit 79042ac4348ccc09344014f20dd49401579f8795)
Co-authored-by: Tal Einat <taleinat@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 2a3d4d9c53dd4831c3ecf56bc7c4a289c33030d6)
Co-authored-by: Benjamin Peterson <benjamin@python.org>
|
|
|
|
|
|
| |
After fcf1d00, IDLE startup failed with python compiled without docstrings.
(cherry picked from commit 6aeb2fe606408aae14c246470794f1303b3be812)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
|
| |
(GH-14659) (GH-14672)
(cherry picked from commit 430a9f44fe22f029ae8cfeecb46621d7e199414b)
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
|
|
|
|
|
|
|
|
|
| |
test_ssl.test_pha_required_nocert() now uses
support.catch_threading_exception() to ignore the expected SSLError
in ConnectionHandler of ThreadedEchoServer (it is only raised
sometimes on Windows).
(cherry picked from commit 73ea54620a6f91c3f2e53880373dd47813691a21)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Replace PyLong_FromLong() with PyLong_FromSize_t():
SSL_CTX_get_num_tickets() return type is size_t.
https://bugs.python.org/issue37120
(cherry picked from commit 76611c7c0af6b2f4d0d98a5db827d34cff54ce25)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
| |
Context manager catching threading.Thread exception using
threading.excepthook.
(cherry picked from commit 91b4f7ab7f9a5e0908b91379ee085ae087a76483)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
|
| |
Nested BinOp instances (e.g. a+b+c) had a wrong col_offset for the
second BinOp (e.g. 2 instead of 0 in the example). Fix it by using the
correct st node to copy the line and col_offset from in ast.c.
(cherry picked from commit 110a47c4f42cf4db88edc1876899fff8f05190fb)
Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de>
|
|
|
|
|
| |
(cherry picked from commit 66b4150f6f001640521ae6c9571cd4325cd67394)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
|
| |
Initial report by Michael Blankenship on docs@
(cherry picked from commit 2da622ff77a763327895656779370b80a833d95c)
Co-authored-by: Julien Palard <julien@palard.fr>
|
|
|
|
|
|
|
| |
test_concurrent_futures now explicitly stops the ForkServer instance
if it's running.
(cherry picked from commit e676244235895aeb6ec3b81ca3ccf4a70e487919)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
|
| |
* bpo-37520: Correct behavior for zipfile.Path.parent
* 📜🤖 Added by blurb_it.
(cherry picked from commit 38f44b4a4adc37e8f5f8971917d8b3145f351a56)
Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
|
|
|
|
|
| |
(cherry picked from commit f6cdd3ff687ebbf8209d793a18a042ea495c4aeb)
Co-authored-by: Hai Shi <shihai1992@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit a9b40e4546ca631e5ab41376b5b72e8f296f557d)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
| |
(cherry picked from commit 0717b4d9b3899c5c2ca13031e4ff619a15a4d368)
Co-authored-by: Kyle Stanley <aeros167@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit 6f2a8c08573c71b78d2f6e2bfaf31641a0cd092b)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
| |
0 is a legal index.
(cherry picked from commit f8709e804d16ec5d44b1d2f00d59a0f78df7b792)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
|
|
|
|
|
|
| |
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 fcf1d003bf4f0100c9d0921ff3d70e1127ca1b71)
Co-authored-by: Tal Einat <taleinat+github@gmail.com>
|
|
|
|
|
|
| |
Also fix a name misspelling.
(cherry picked from commit 45bc61b97178b27ae05bd3eb95481bf0325795bb)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
|
|
|
|
|
| |
(cherry picked from commit 39a5d17a7f1387582eb484422df450bc09a5543e)
Co-authored-by: Hai Shi <shihai1992@gmail.com>
|
|
|
|
|
| |
(cherry picked from commit f7d72e48fb235684e17668a1e5107e6b0dab7b80)
Co-authored-by: Min ho Kim <minho42@gmail.com>
|
|
|
|
|
|
|
|
| |
multiprocessing tests now stop the ForkServer instance if it's
running: close the "alive" file descriptor to ask the server to stop
and then remove its UNIX address.
(cherry picked from commit 8fbeb14312b4c1320d31ad86e69749515879d1c3)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
|
|
| |
The distutils bdist_wininst command is now deprecated, use
bdist_wheel (wheel packages) instead.
(cherry picked from commit 1da4462765b084dfa8d869b6cb5855e8f6014a11)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|
|
|
|
|
| |
(cherry picked from commit a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892)
Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
|
| |
|
|\
| |
| |
| | |
Python 3.8.0b2
|
| | |
|
| |
| |
| |
| |
| | |
(cherry picked from commit fc1fbe6099e826e8304eadf781af7c10d739fc40)
Co-authored-by: Ned Deily <nad@python.org>
|
|/
|
|
|
|
|
|
|
| |
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 9d40554e0da09a44a8547f3f3a2b9dedfeaf7928)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
|