| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
and in codecs.escape_decode() when decode an escaped non-ascii byte.
(cherry picked from commit 56cb465cc93dcb35aaf7266ca3dbe2dcff1fac5f)
|
|
|
|
|
| |
(#4052)
(cherry picked from commit ea2ef5d0ca869d4550820ed53bdf56013dbb9546)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-4044) (GH-4050)
This used to be the case on Python 2. Commit
212b590e118e3650b596917021ed9612a918180b changed the implementation for Python
3, making the `log()` method of LogAdapter call `logger._log()` directly. This
makes nested log adapters not execute their ``process()`` method. This patch
fixes the issue.
Also, now proxying `name`, too, to make `repr()` work with nested log adapters.
New tests added.
(cherry picked from commit ce9e62544571e7ade7186697d5dd065fb4c5243f)
|
|
|
|
|
|
|
| |
(GH-4042) (#4043)
Due to a bug in the initial fix, the setter was in fact creating a different
property. This is now fixed.
(cherry picked from commit 0b6a118a45ac2eded1348fea6ed300d5651f7471)
|
|
|
|
|
|
|
| |
(GH-3998) (GH-4039)
The word "difference" from missing the sentence.
This clarifies that it compares the difference between the two objects.
(cherry picked from commit 032a6480e360427d4f964e31643604fad804ea14)
|
|
|
|
|
|
|
| |
Always pass -1, or INFTIM where defined, to the poll() system call when
a negative timeout is passed to the poll.poll([timeout]) method in the
select module. Various OSes throw an error with arbitrary negative
values.
(cherry picked from commit 6cfa927ceb931ad968b5b03e4a2bffb64a8a0604)
|
|
|
|
|
|
|
|
|
| |
in more functions (GH-4026) (#4032)
Fix timeout rounding in time.sleep(), threading.Lock.acquire() and
socket.socket.settimeout() to round correctly negative timeouts between -1.0 and
0.0. The functions now block waiting for events as expected. Previously, the
call was incorrectly non-blocking.
(cherry picked from commit 59af94fa61bf90adbe624508e909b5d6ef6e8464)
|
|
|
|
|
| |
is a small negative value. (GH-4003). (#4022)
(cherry picked from commit 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46)
|
|
|
|
|
| |
test_load_source() now replaces the current __name__ module with a
temporary module to prevent side effects.
(cherry picked from commit a505ecdc5013cd8f930aacc1ec4fb2afa62d3853)
|
|
|
| |
(cherry picked from commit 27288de0856c6fbe56354adb312ae706ce8bc7de)
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-3960) (#4027)
Even if one selects a font that defines a limited subset of the unicode
Basic Multilingual Plane, tcl/tk will use other fonts that define a
character. The expanded example give users of non-Latin characters
a better idea of what they might see in the IDLE shell and editors.
To make room for the expanded sample, frames on the Font tab are
re-arranged. The Font/Tabs help explains a bit about the additions.
(cherry picked from commit e2e42274ee5db1acedf57b63943e1f536d7a25bc)
|
|
|
|
|
| |
(GH-4014) (#4024)
(cherry picked from commit de86073a761cd3539aaca6f886a1f55effc0d9da)
|
|
|
|
| |
bpo-31799: Make module.__spec__ more discoverable
(cherry picked from commit 191e3138200906e43cba9347177914325b54843f)
|
|
|
|
|
| |
(GH-4007) (#4009)
(cherry picked from commit 676db4bbf2e7c18dc7c35add17dd3bbdc2d3eeb3)
|
|
|
| |
(cherry picked from commit 1295e11d397c6138427296d5f9653a9e7dd69062)
|
|
|
|
|
| |
(GH-3993)
(cherry picked from commit 1b9e76ed3a055a53ca67397e928e1b408461900b)
|
|
|
|
|
|
| |
(GH-4002) (#4004)
Patch by Pablo.
(cherry picked from commit 28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4)
|
|
|
|
| |
Follow-up to Victor's patch that enabled autotest to run in IDLE's Shell.
(cherry picked from commit 620f70e)
|
|
|
| |
(cherry picked from commit cd195e2a7ac5c9b2574d5462752b7939641de4a9)
|
|
|
|
|
|
|
|
|
|
|
|
| |
(GH-3872)
Pattern `[a-z]` with `IGNORECASE` flag can match to some non-ASCII characters.
Straightforward solution for this is using `IGNORECASE | ASCII` flag.
But users may subclass `Template` and override only `idpattern`. So we want to
avoid changing `Template.flags`.
So this commit uses local flag `-i` for `idpattern` and change `[a-z]` to `[a-zA-Z]`.
(cherry picked from commit b22273ec5d1992b0cbe078b887427ae9977dfb78)
|
|
|
|
|
|
|
|
| |
When regrtest in run inside IDLE, sys.stdout and sys.stderr are not
TextIOWrapper objects and have no file descriptor associated:
sys.stderr.fileno() raises io.UnsupportedOperation.
Disable faulthandler and don't replace sys.stdout in that case.
(cherry picked from commit ccef823939d4ef602f2d8d13d0bfec29eda597a5)
|
|
|
|
|
|
| |
Reported by John Gamboa on docs@p.o at
https://mail.python.org/pipermail/docs/2017-June/031942.html
(cherry picked from commit 925510449984399cf58711843ddfe2e8007c3878)
|
| |
|
|
|
|
|
| |
(#3973)
(cherry picked from commit de072100775cc29e6cd93a75466cecbd1086f258)
|
| |
|
|
|
| |
(cherry picked from commit 0e61e67a57deb4abc677808201d7cf3c38138e02)
|
|
|
|
|
|
| |
* stdout and stderr are always opened in text mode
* and they are line-buffered
Initial patch by Gareth Rees.
|
|
|
|
|
|
|
| |
* Separated functions and constants descriptions in sections.
* Added a note about the limitations of timezone constants.
* Removed redundant lists from the module docstring.
(cherry picked from commit 703ff381ffa946c23e7e25b0ae93a636a2607a40)
|
|
|
|
| |
Change the code example from using `get_history_length` to `get_current_history_length`.
(cherry picked from commit eeb5ffd54e56dd89a99c74eb512c36d62649cfec)
|
|
|
|
|
| |
Element.text and Element.tail (GH-3924) (#3945)
(cherry picked from commit 39ecb9c71b6e55d8a61a710d0144231bd88f9ada)
|
|
|
| |
Fix some tests in ./configure for determining macOS compiler choices that could fail if a $PATH element contained spaces.
|
|
|
|
|
| |
sys.modules. (GH-3834). (#3923)
(cherry picked from commit f07e2b64df6304a36fb5e29397d3c77a7ba17704)
|
|
|
|
|
|
|
| |
With the upgrade of buildbot.python.org from Buildbot 0.8.x to 0.9.x,
the xmlrpc interface has been removed. This test is now skipped until
it can be rewritten to query a suitable substitute.
(cherry picked from commit 73ffd3f2036179ed54591ef0455e5ba5694ae5bd)
|
|
|
|
|
| |
(GH-3909) (#3920)
(cherry picked from commit 79ba471488b936abda5ba5234b1ea90cbc94cae6)
|
|
|
|
|
| |
(GH-3917)
(cherry picked from commit 28f713601d3ec80820e842dcb25a234093f1ff18)
|
|
|
|
|
| |
(GH-3647) (GH-3733)
(cherry picked from commit 9e7b9b21fe45f7d93eaf9382fedfa18247d0d2b2)
|
|
|
|
|
| |
(GH-3900) (#3902)
(cherry picked from commit 2084b30e540d88b9fc752c5bdcc2f24334af4f2b)
|
|
|
| |
(cherry picked from commit a8ed11742b4c2115597977ce04fa8e043d9e0792)
|
|
|
|
|
|
|
| |
Fix test_exception_errpipe_bad_data() and
test_exception_errpipe_normal() of test_subprocess: mock os.waitpid()
to avoid calling the real os.waitpid(0, 0) which is an unexpected
side effect of the test.
(cherry picked from commit 11045c9d8a21dd9bd182a3939189db02815f9783)
|
|
|
| |
(cherry picked from commit 300dd552b15825abfe0e367ac14cec4c3e050dbc)
|
|
|
|
|
|
|
| |
* Fix incorrect links.
* Remove redundant links.
* Add signatures and index entries for gettext related
functions in the locale module.
(cherry picked from commit c02a1f4ad8fcdbffad2911c5a31c71a17a89d713)
|
| |
|
|
|
|
|
|
|
|
| |
split() (GH-3866) (#3874)
when pass a string larger than 2 GiB.
Decrease memory requirements for Tcl's bigmem tests.
(cherry picked from commit 27c623c845dd6e4b8e1782666ca3a956636da266)
|
|
|
|
|
| |
(GH-3864). (#3873)
(cherry picked from commit 929b40a601db868530d6beaafb3256822103a7fb)
|
|
|
|
|
|
| |
of underscores (GH-3827) (#3863)
to integer with binary base.
(cherry picked from commit 85c0b8941f0c8ef3ed787c9d504712c6ad3eb5d3)
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|