Commit Graph

102530 Commits

Author SHA1 Message Date
Miss Islington (bot) 5f9a168a31
bpo-35769: Change IDLE's name for new files from 'Untitled' to 'untitled' (GH-11602)
'Untitled' violates the PEP 8 standard for .py files
(cherry picked from commit a902239f22)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-01-17 23:24:09 -08:00
Miss Islington (bot) 237f864c90
bpo-35730: IDLE - test squeezer reload() by checking load_font() (GH-11585)
(cherry picked from commit e55cf024ca)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2019-01-17 18:44:09 -08:00
Miss Islington (bot) 59d7bdb338 bpo-34162: Update idlelib/NEWS.txt to 2019 Jan 17 (GH-11597) (GH-11598)
(cherry picked from commit 56c16057c6)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-01-17 19:49:04 -05:00
Miss Islington (bot) ebb08beb08
bpo-23156: Remove obsolete tix install directions (GH-11595)
Tix was deprecated in 3.6 and the doc is wrong.  New users should use ttk.
(cherry picked from commit cf27c06229)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-01-17 16:07:10 -08:00
Miss Islington (bot) a261b73761 bpo-33687: Fix call to os.chmod() in uu.decode() (GH-7282)
(cherry picked from commit 17f05bbc78)

Co-authored-by: Timo Furrer <tuxtimo@gmail.com>
2019-01-17 17:32:59 +03:00
Miss Islington (bot) 6d84071514
Fixes typo in asyncio.queue doc (GH-11581)
Typo fix for method doc, I'm pretty sure coro is meant, because there's no consumer threads for thread-unsafe queue.

Most probably this piece of doc was copied from `queue.Queue`

There's not BPO bug for this, afaik.
(cherry picked from commit 97e12996f3)

Co-authored-by: Slam <3lnc.slam@gmail.com>
2019-01-17 03:58:37 -08:00
Miss Islington (bot) 422db37778
bpo-35486: Note Py3.6 import system API requirement change (GH-11540)
While the introduction of ModuleNotFoundError was fully backwards
compatible on the import API consumer side, folks providing alternative
implementations of `__import__` need to make an update to be
forward compatible with clients that start relying on the new subclass.

https://bugs.python.org/issue35486
(cherry picked from commit cee29b46a1)

Co-authored-by: Nick Coghlan <ncoghlan@gmail.com>
2019-01-17 02:48:15 -08:00
Miss Islington (bot) be5de958e9
bpo-35746: Fix segfault in ssl's cert parser (GH-11569)
Fix a NULL pointer deref in ssl module. The cert parser did not handle CRL
distribution points with empty DP or URI correctly. A malicious or buggy
certificate can result into segfault.

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

https://bugs.python.org/issue35746
(cherry picked from commit a37f52436f)

Co-authored-by: Christian Heimes <christian@python.org>
2019-01-15 15:03:36 -08:00
Miss Islington (bot) c9f26714d5
bpo-23846: Fix ProactorEventLoop._write_to_self() (GH-11566)
asyncio.ProactorEventLoop now catchs and logs send errors when the
self-pipe is full: BaseProactorEventLoop._write_to_self() now catchs
and logs OSError exceptions, as done by
BaseSelectorEventLoop._write_to_self().
(cherry picked from commit c9f872b0bd)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-01-15 05:17:05 -08:00
Victor Stinner d5a6adf628
[3.7] bpo-34323: Enhance IocpProactor.close() log (GH-11565)
* IocpProactor: prevent modification if closed (GH-11494)

* _wait_for_handle(), _register() and _unregister() methods of
  IocpProactor now raise an exception if closed
* Add "closed" to IocpProactor.__repr__()
* Simplify IocpProactor.close()

(cherry picked from commit 9b07681c09)

* bpo-34323: Enhance IocpProactor.close() log (GH-11555)

IocpProactor.close() now uses time to decide when to log: wait 1
second before the first log, then log every second. Log also the
number of seconds since close() was called.

(cherry picked from commit b1e45739d8)

* bpo-34323: Enhance IocpProactor.close() log again (GH-11563)

Add repr(self) to the log to display the number of pending overlapped
in the log.

(cherry picked from commit b91140fdb1)
2019-01-15 13:05:28 +01:00
Miss Islington (bot) 97d6a56d9d
bpo-35742: Fix test_envar_unimportable in test_builtin. (GH-11561)
Handle the case of an empty module name in PYTHONBREAKPOINT.

Fixes a regression introduced in bpo-34756.
(cherry picked from commit 3607ef43c4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-01-15 03:45:57 -08:00
Miss Islington (bot) 0bb6b89115
bpo-35738: Update the example for timer.Timer.repeat(). (GH-11559)
Show correct number of repeats.
(cherry picked from commit 06f8b57212)

Co-authored-by: Henry Chen <tahafut@gmail.com>
2019-01-15 02:49:16 -08:00
Miss Islington (bot) a4aade2cf8
bpo-29707: Document that os.path.ismount() is not able to reliable detect bind mounts. (GH-11238)
(cherry picked from commit 32ebd8508d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-01-15 01:01:15 -08:00
Miss Islington (bot) 6d0254bae4
bpo-34756: Silence only ImportError and AttributeError in sys.breakpointhook(). (GH-9457)
(cherry picked from commit 6fe9c446f8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-01-14 03:17:06 -08:00
Miss Islington (bot) 26122de1a8
bpo-35066: _dateime.datetime.strftime copies trailing '%' (GH-10692)
Previously, calling the strftime() method on a datetime object with a
trailing '%' in the format string would result in an exception. However,
this only occured when the datetime C module was being used; the python
implementation did not match this behavior. Datetime is now PEP-399
compliant, and will not throw an exception on a trailing '%'.
(cherry picked from commit 454b3d4ea2)

Co-authored-by: MichaelSaah <mike.saah@gmail.com>
2019-01-14 02:41:33 -08:00
Miss Islington (bot) 890d3fa10c
bpo-35730: Disable IDLE test_reload assertion. (GH-11543)
IDLE's test_squeezer.SqueezerTest.test_reload, added for issue 35196,
failed on both Gentoo buildbots.
(cherry picked from commit 5bb146aaea)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-01-13 10:05:50 -08:00
Miss Islington (bot) 47bd777022
bpo-35196: Optimize Squeezer's write() interception (GH-10454)
The new functionality of Squeezer.reload() is also tested, along with some general
re-working of the tests in test_squeezer.py.
(cherry picked from commit 39a33e9927)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2019-01-13 08:43:08 -08:00
Miss Islington (bot) 678c5c0752
bpo-34512: Document platform-specific strftime() behavior for non-ASCII format strings (GH-8948)
(cherry picked from commit 1cffd0eed3)

Co-authored-by: Alexey Izbyshev <izbyshev@ispras.ru>
2019-01-12 09:27:30 -08:00
Miss Islington (bot) cbc7c2c791
bpo-35552: Fix reading past the end in PyUnicode_FromFormat() and PyBytes_FromFormat(). (GH-11276)
Format characters "%s" and "%V" in PyUnicode_FromFormat() and "%s" in PyBytes_FromFormat()
no longer read memory past the limit if precision is specified.
(cherry picked from commit d586ccb04f)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-01-12 00:52:55 -08:00
Miss Islington (bot) d39c192559
bpo-33817: Fix _PyBytes_Resize() for empty bytes object. (GH-11516)
Add also tests for PyUnicode_FromFormat() and PyBytes_FromFormat()
with empty result.
(cherry picked from commit 44cc4822bb)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2019-01-11 23:40:09 -08:00
Miss Islington (bot) 059997d78e
bpo-32710: Fix _overlapped.Overlapped memory leaks (GH-11489)
Fix memory leaks in asyncio ProactorEventLoop on overlapped operation
failures.

Changes:

* Implement the tp_traverse slot in the _overlapped.Overlapped type
  to help to break reference cycles and identify referrers in the
  garbage collector.
* Always clear overlapped on failure: not only set type to
  TYPE_NOT_STARTED, but release also resources.
(cherry picked from commit 5485085b32)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-01-11 06:01:50 -08:00
Miss Islington (bot) 8a5b1aa98f
bpo-35716: Update time.CLOCK_MONOTONIC_RAW doc (GH-11517)
Document that the time.CLOCK_MONOTONIC_RAW constant
is now also available on macOS 10.12.

Co-authored-by: Ricardo Fraile <rfraile@rfraile.eu>
(cherry picked from commit fd7d539be3)

Co-authored-by: Joannah Nanjekye <33177550+nanjekyejoannah@users.noreply.github.com>
2019-01-11 05:32:11 -08:00
Miss Islington (bot) b9cd38f928
bpo-32146: Add documentation about frozen executables on Unix (GH-5850)
(cherry picked from commit bab4bbb4c9)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
2019-01-10 10:13:21 -08:00
Miss Islington (bot) 3e3d57d849
bpo-35470: Fix a reference counting bug in _PyImport_FindExtensionObjectEx(). (GH-11128)
(cherry picked from commit 89c4f90df9)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-01-10 08:36:50 -08:00
Miss Islington (bot) 1cbd17c698
bpo-24746: Fix doctest failures when running the testsuite with -R (GH-11501)
(cherry picked from commit c5dc60ea85)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2019-01-10 08:02:26 -08:00
Miss Islington (bot) 2bd5f7e91a
bpo-34855: Fix EXTERNALS_DIR build variable for Windows (GH-11177)
(cherry picked from commit 6aedfa6b9a)

Co-authored-by: antektek <45912913+antektek@users.noreply.github.com>
2019-01-09 16:46:40 -08:00
Miss Islington (bot) 14190000c7 Update bugs.rst (GH-11485)
(cherry picked from commit 91c6158dbc)

Co-authored-by: Andre Delfino <adelfino@gmail.com>
2019-01-09 16:00:12 -07:00
Miss Islington (bot) 2b3db49369
Add example to the documentation for calling unittest.mock.patch with create=True (GH-11056)
(cherry picked from commit d6acf17c05)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
2019-01-09 13:50:02 -08:00
Miss Islington (bot) 6f76ef8159
bpo-35641: Move IDLE blurb to IDLE directory (GH-11479)
(cherry picked from commit ee65594367)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-01-09 07:49:38 -08:00
Miss Islington (bot) 53cf5f084b
bpo-24746: Avoid stripping trailing whitespace in doctest fancy diff (GH-10639)
(cherry picked from commit cbb1645993)

Co-authored-by: Sanyam Khurana <8039608+CuriousLearner@users.noreply.github.com>
2019-01-09 05:56:40 -08:00
Miss Islington (bot) 88ad48bc98
bpo-32710: Fix leak in Overlapped_WSASend() (GH-11469)
Fix a memory leak in asyncio in the ProactorEventLoop when ReadFile()
or WSASend() overlapped operation fail immediately: release the
internal buffer.
(cherry picked from commit a234e14839)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-01-08 05:40:50 -08:00
Miss Islington (bot) 69f64b67e4
bpo-35596: Use unchecked PYCs for the embeddable distro to avoid zipimport restrictions (GH-11465)
Also adds extra steps to the CI build for Windows on Azure Pipelines to validate that the various layouts at least execute.
(cherry picked from commit 872bd2b57c)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2019-01-08 02:56:14 -08:00
Miss Islington (bot) 5d1e0124cf
bpo-35374: Avoid trailing space in hhc file name if found on PATH. (GH-10849)
(cherry picked from commit e61cc481e0)

Co-authored-by: chrullrich <chris@chrullrich.net>
2019-01-07 19:04:14 -08:00
Miss Islington (bot) 88bd26a72e
bpo-35682: Fix _ProactorBasePipeTransport._force_close() (GH-11462)
bpo-32622, bpo-35682: Fix asyncio.ProactorEventLoop.sendfile(): don't
attempt to set the result of an internal future if it's already done.

Fix asyncio _ProactorBasePipeTransport._force_close(): don't set the
result of _empty_waiter if it's already done.
(cherry picked from commit 80fda712c8)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2019-01-07 18:15:25 -08:00
Miss Islington (bot) 9a413faa87
bpo-35560: Remove assertion from format(float, "n") (GH-11288)
Fix an assertion error in format() in debug build for floating point
formatting with "n" format, zero padding and small width. Release build is
not impacted. Patch by Karthikeyan Singaravelan.
(cherry picked from commit 3f7983a25a)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
2019-01-07 07:26:20 -08:00
Miss Islington (bot) 65ed9f31cf
test_threading_local: add missing "import sys" (GH-8049)
(cherry picked from commit a0bb51e44c)

Co-authored-by: cclauss <cclauss@me.com>
2019-01-06 14:32:52 -08:00
Miss Islington (bot) be37dbff1c
bpo-35660: Fix imports in idlelib.window (GH-11434)
* bpo-35660: IDLE: Remove * import from window.py

* sys was being imported through the *, so also added an import sys.

* Update 2019-01-04-19-14-29.bpo-35660.hMxI7N.rst

Anyone who wants details can check the issue, where I added the point about the sys import bug.
(cherry picked from commit 11303dd603)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2019-01-06 13:13:30 -08:00
Miss Islington (bot) 902196d867
bpo-35631: Improve typing docs wrt abstract/concrete collection types (GH-11396)
https://bugs.python.org/issue35631
(cherry picked from commit 31ec52a9af)

Co-authored-by: Ville Skyttä <ville.skytta@iki.fi>
2019-01-04 06:20:19 -08:00
Miss Islington (bot) 47c035f3ef
bpo-31450: Remove documentation mentioning that subprocess's child_traceback is available with the parent process (GH-11422)
(cherry picked from commit 47a2fced84)

Co-authored-by: Harmandeep Singh <harmandeep3091@gmail.com>
2019-01-03 12:01:44 -08:00
Miss Islington (bot) 3c83cb7eed
bpo-35641: IDLE - format calltip properly when no docstring (GH-11415)
(cherry picked from commit ab54b9a130)

Co-authored-by: Emmanuel Arias <emmanuelarias30@gmail.com>
2019-01-03 01:44:47 -08:00
Miss Islington (bot) b364caa399
bpo-33987: IDLE - use ttk Frame for ttk widgets (GH-11395)
(cherry picked from commit aff0adabf3)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2019-01-02 19:22:10 -08:00
Miss Islington (bot) d7cb2034bb
bpo-35525: Correct the argument name for NNTP.starttls() (GH-11310)
(cherry picked from commit e9a044ec16)

Co-authored-by: Harmandeep Singh <harmandeep3091@gmail.com>
2019-01-02 13:11:00 -08:00
Miss Islington (bot) 6d04bc9a2e
closes bpo-35643: Fix a SyntaxWarning: invalid escape sequence in Modules/_sha3/cleanup.py (GH-11411)
(cherry picked from commit d466c43e55)

Co-authored-by: Mickaël Schoentgen <contact@tiger-222.fr>
2019-01-02 11:58:58 -08:00
Benjamin Peterson d634abd123
[3.7] Bump copyright years to 2019. (GH-11406)
(cherry picked from commit 9a69ae8a78)
2019-01-02 08:15:53 -08:00
Miss Islington (bot) a5955b0895
closes bpo-35623: Fix integer overflow when sorting large lists (GH-11380)
There is already a `Py_ssize_t i` defined at function scope that is used
for similar loops. By removing the local `int i` declaration that `i` is
used, which has the appropriate type.
(cherry picked from commit f8b534477a)

Co-authored-by: sth <sth.dev@tejp.de>
2019-01-01 18:25:23 -08:00
Miss Islington (bot) 513fab2c67
closes bpo-35630: Use code tag for 'python3' in 'README.rst' (GH-11394)
(cherry picked from commit 7e3fb40b92)

Co-authored-by: Suriyaa ✌️️ <isc.suriyaa@gmail.com>
2019-01-01 18:03:53 -08:00
Miss Islington (bot) 74e4648377
bpo-35598: IDLE - Globalize some config_key objects (GH-11392)
Move translate_key() and constant tuples to module level.
Inline the remnant one-line function.
(cherry picked from commit b4ea8bb080)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
2018-12-31 12:19:53 -08:00
Gregory P. Smith efcf08d8ca
[3.7] bpo-35214: Annotate posix calls for clang MSan. (GH-11389) (GH-11391)
It doesn't know the details of a few less common libc functions..

(cherry picked from commit 1d300ce1d8)

Co-authored-by: Gregory P. Smith <greg@krypto.org> [Google]
2018-12-30 22:14:33 -08:00
Miss Islington (bot) 75bf2b1e23
Fix typo in test module usage message (GH-11374)
A minor typo in the output of `python -m test -h`.
A space was missing in between two words.
howmuch -> how much
(cherry picked from commit 7108aab49c)

Co-authored-by: sth <sth.dev@tejp.de>
2018-12-30 21:59:08 -08:00
Miss Islington (bot) 5d2e4b1ff2
bpo-35214: Skip test_io tests that'd cause a huge malloc under msan (GH-11385)
* skip test_constructor under msan.

* fix the others as well.

* reuse existing related news entry.

* typo fix
(cherry picked from commit e5796c42c6)

Co-authored-by: Gregory P. Smith <greg@krypto.org>
2018-12-30 20:39:28 -08:00