Commit Graph

20227 Commits

Author SHA1 Message Date
Steve Dower b0bf51b322
bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544) 2018-08-07 01:08:39 +01:00
Miss Islington (bot) e20d31cdb3
bpo-19891: Ignore error while writing history file (GH-8483)
(cherry picked from commit b2499669ef)

Co-authored-by: Anthony Sottile <asottile@umich.edu>
2018-08-06 02:15:42 -07:00
Miss Islington (bot) 2474cef34c
bpo-33839: refactor IDLE's tooltips & calltips, add docstrings and tests (GH-7683)
* make CallTip and ToolTip sub-classes of a common abstract base class
* remove ListboxToolTip (unused and ugly)
* greatly increase test coverage
* tested on Windows, Linux and macOS
(cherry picked from commit 87e59ac11e)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2018-08-04 23:58:06 -07:00
Miss Islington (bot) 363105e546
bpo-34275: Make IDLE calltips always visible on Mac. (GH-8639)
Some MacOS-tk combinations need .update_idletasks().
The call is both unneeded and innocuous on Linux and Windows.
Patch by Kevin Waltzer.
(cherry picked from commit 9beaef6225)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-08-02 20:33:47 -07:00
Miss Islington (bot) 9fcfb7b010
bpo-34120: fix IDLE freezing after closing dialogs (GH-8603)
Added missing .grab_release() calls to all places where we call .grab_set().
(cherry picked from commit 10ea9409ce)

Co-authored-by: Tal Einat <taleinat+github@gmail.com>
2018-08-02 00:14:24 -07:00
Miss Islington (bot) 6f16ffc187 [3.6] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532) (GH-8587) 2018-07-31 11:28:56 -04:00
Serhiy Storchaka ada5d99306
[3.6] bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) (GH-8584)
* Fix integer overflow in os.readv(), os.writev() and in os.sendfile()
  with headers or trailers arguments (on BSD-based OSes and MacOS).

* Fix sending the part of the file in os.sendfile() on MacOS.
  Using the trailers argument could cause sending more bytes from
  the input file than was specified.

Thanks Ned Deily for testing on 32-bit MacOS.
(cherry picked from commit 9d5727326a)
2018-07-31 12:58:58 +03:00
Steve Dower 28bbbdabb1
bpo-30237: Output error when ReadConsole is canceled by CancelSynchronousIo. (GH-7911)
Co-authored-by: ValeriyaSinevich <valeriya.sinevich@phystech.edu>
2018-07-29 10:32:30 +01:00
Miss Islington (bot) 8f6a7e100d bpo-34225: Ensure INCLUDE and LIB directories do not end with a backslash. (GH-8464)
(cherry picked from commit 5473f061f5)

Co-authored-by: Steve Dower <steve.dower@microsoft.com>
2018-07-29 10:02:16 +01:00
Miss Islington (bot) f17e001746
bpo-33476: Fix _header_value_parser when address group is missing final ';' (GH-7484)
(cherry picked from commit 8fe9eed937)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2018-07-28 08:59:18 -07:00
Berker Peksag 9d85856044
bpo-30722: Fix NEWS entry (GH-8501) 2018-07-27 19:17:53 +03:00
Ammar Askar 6ea8a3a0eb [3.6] bpo-29097: Forego fold detection on windows for low timestamp values (GH-2385) (GH-8498)
On Windows, passing a negative value to local results in an OSError because localtime_s on Windows does not support negative timestamps. Unfortunately this means that fold detection for timestamps between 0 and max_fold_seconds will result in this OSError since we subtract max_fold_seconds from the timestamp to detect a fold. However, since we know there haven't been any folds in the interval [0, max_fold_seconds) in any timezone, we can hackily just forego fold detection for this time range on Windows..
(cherry picked from commit 96d1e69a12)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
2018-07-27 10:59:27 -04:00
Miss Islington (bot) cecbe0ade8 bpo-32663 Make SMTPUTF8SimTests run (GH-5314) (#8470)
Enable and fix SMTPUTF8SimTests in test_smtplib.

The tests for SMTPUTF8SimTests in test_smtplib.py were not actually
being run because test_smtplib was still using the 'test_main' pattern,
and the class was never added to test_main.

Additionally, one of the tests needed to be moved to the non-UTF8 server
class because it relies on the server not being UTF-8 compatible (and it
had a bug in in).
(cherry picked from commit 48ed88a93b)

Co-authored-by: chason <chason@gmail.com>
2018-07-26 10:02:22 -04:00
Serhiy Storchaka 113f86e748
[3.6] bpo-34164: Fix handling of incorrect padding in base64.b32decode(). (GH-8351) (GH-8436)
Now base64.Error is always raised instead of UnboundLocalError or
OverflowError.
(cherry picked from commit ac0b3c2f4d)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-24 15:06:59 +03:00
Miss Islington (bot) 1127849847
bpo-33336, imaplib: Legalize MOVE command (GH-6569)
imaplib now allows MOVE command in IMAP4.uid() (RFC 6851:
IMAP MOVE Extension) and potentially as a name of supported
method of IMAP4 object.
(cherry picked from commit caa331d492)

Co-authored-by: Matěj Cepl <mcepl@cepl.eu>
2018-07-23 06:17:25 -07:00
Miss Islington (bot) e9e6495eed
bpo-940286: Fix pydoc to show cross refs correctly (GH-8390)
(cherry picked from commit d04f46c59f)

Co-authored-by: Berker Peksag <berker.peksag@gmail.com>
2018-07-22 23:51:28 -07:00
Serhiy Storchaka cf30d5c5b8
bpo-24618: Add a check in the code constructor. (GH-8283) (GH-8311)
Check that the size of the varnames tuple is enough at least for all arguments.
(cherry picked from commit bd47384e07)
2018-07-17 10:33:55 +03:00
Serhiy Storchaka cc13016658
bpo-34068: _io__IOBase_close_impl could call _PyObject_SetAttrId with an exception set (GH-8282). (GH-8312)
(cherry picked from commit 28f07364f0)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-07-17 10:33:14 +03:00
Benjamin Peterson 8487ef61de
[3.6] bpo-34121: Fix detection of C11 atomic support on clang. (GH-8290)
(cherry picked from commit 15c7b2abdf)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-07-15 17:48:46 -07:00
Miss Islington (bot) 3b06285d2b bpo-34080: Fix a memory leak in the compiler. (GH-8222) (GH-8257)
(cherry picked from commit 993030aac5)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-12 00:05:29 +02:00
Miss Islington (bot) ec7562068f
bpo-23927: Make getargs.c skipitem() skipping 'w*'. (GH-8192)
(cherry picked from commit 504373c59b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-11 10:10:40 -07:00
Miss Islington (bot) 6ceab46a60
bpo-33967: Fix singledispatch raised IndexError when no args (GH-8184)
(cherry picked from commit 445f1b35ce)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2018-07-10 01:00:35 -07:00
Serhiy Storchaka eeaae26ce5
[3.6] bpo-34066: Disabled interruption before SETUP_WITH and BEFORE_ASYNC_WITH. (GH-8159) (GH-8198)
This will prevent emitting a resource warning when the execution was
interrupted by Ctrl-C between calling open() and entering a 'with' block
in "with open()".
(cherry picked from commit 3f4d90d4d7)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-07-09 19:02:25 +03:00
Miss Islington (bot) d73497ba52 bpo-26544: Fixed implementation of platform.libc_ver(). (GH-7684). (GH-8193) (GH-8195)
(cherry picked from commit 2a9b8babf0)
(cherry picked from commit 7c43b80150)
2018-07-09 14:38:27 +03:00
Benjamin Peterson becb527767
[3.6] closes bpo-34050: Fix link in SSL docs (GH-8173) (GH-8178)
(cherry picked from commit 9c5ba09748)

Co-authored-by: Marcin Niemira <marcin@niemira.net>
2018-07-07 16:03:37 -07:00
Dong-hee Na cad4a27585 [3.6] bpo-34065: Improve the markup of logging.basicConfig() arguments (GH-8153). (GH-8155)
(cherry picked from commit 2800dcf656)

Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
2018-07-07 19:11:22 +03:00
Miss Islington (bot) 972458a424
bpo-34054: multiprocessing uses time.monotonic() (GH-8118)
The multiprocessing module now uses the monotonic clock
time.monotonic() instead of the system clock time.time() to implement
timeouts.
(cherry picked from commit c2368cbc83)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-07-06 05:14:33 -07:00
Ammar Askar 11c36a3e16 [3.6] bpo-33899: Make tokenize module mirror end-of-file is end-of-line behavior (GH-7891) (GH-8134)
Most of the change involves fixing up the test suite, which previously made
the assumption that there wouldn't be a new line if the input didn't end in
one.

Contributed by Ammar Askar.

(cherry picked from commit c4ef4896ea)
2018-07-06 13:22:25 +03:00
Miss Islington (bot) d7a0ad7dd7
bpo-34010: Fix tarfile read performance regression (GH-8020)
During buffered read, use a list followed by join instead of extending a bytes object.
This is how it was done before but changed in commit b506dc32c1.
(cherry picked from commit 12a08c4760)

Co-authored-by: hajoscher <hajoscher@gmail.com>
2018-07-04 01:43:42 -07:00
Miss Islington (bot) e1ebf51f76 bpo-24596: Decref module in PyRun_SimpleFileExFlags() on SystemExit (GH-7918) (GH-8069)
PyErr_Print() will not return when the exception is a SystemExit, so
decref the __main__ module object in that case.
(cherry picked from commit d8cba5d16f)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-07-03 22:17:46 +02:00
Miss Islington (bot) dd5f43a023
bpo-34019: Fix wrong arguments for Opera Browser (GH-8047)
The Opera Browser was using a outdated command line invocation that resulted in an incorrect URL being opened in the browser when requested using the webbrowser module.

* Correct the arguments passed to the Opera Browser when opening a new URL.
(cherry picked from commit 3cf1f154ed)

Co-authored-by: Bumsik Kim <k.bumsik@gmail.com>
2018-07-03 05:16:56 -07:00
Miss Islington (bot) 580c7db172
bpo-34006: Revert line length limit for Windows help docs (GH-8051)
The line-length limit is not needed because the pages appear in a separate app rather
 than on a browser tab.  It can also interact badly with the DPI setting.
(cherry picked from commit d824ca7f4d)

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
2018-07-02 15:23:46 -07:00
Xtreak b6c1989168 [3.6] bpo-33978: Close existing handlers before logging (re-)configuration. (GH-8008). (GH-8045)
(cherry picked from commit 087570af6d)

Co-authored-by: Xtreak <tirkarthi@users.noreply.github.com>
2018-07-02 10:35:52 +01:00
Tal Einat db7ac30ef5
[3.6] bpo-32568: make select.epoll() and its docs consistent (GH-7840) (GH-8025)
* `flags` is indeed deprecated, but there is a validation on its value for
  backwards compatibility reasons.  This adds mention of this in the docs.
* The docs say that `sizehint` is deprecated and ignored, but it is still
  used when `epoll_create1()` is unavailable. This adds mention of this in
  the docs.
* `sizehint=-1` is acceptable again, and is replaced with `FD_SETSIZE-1`.
  This is needed to have a default value available at the Python level,
  since `FD_SETSIZE` is not exposed to Python. (see: bpo-31938)
* Reject `sizehint=0` since it is invalid to pass on to `epoll_create()`.

The relevant tests have also been updated.

(cherry picked from commit 0cdf5f4289)
2018-06-30 16:15:53 +03:00
Miss Islington (bot) b2e88fcf63
bpo-33974: Fix passing special characters to ttk widgets. (GH-7986)
Fix passing lists and tuples of strings containing special characters
'"', '\\', '{', '}' and '\n' as options to tkinter.ttk widgets.
(cherry picked from commit 5bb5bbfca8)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2018-06-29 23:43:22 -07:00
Zackery Spytz d6a283b37b [3.6] bpo-25862: Fix assertion failures in io.TextIOWrapper.tell(). (GH-3918). (GH-8012)
(cherry picked from commit 23db935bcf)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-29 22:30:07 +03:00
Miss Islington (bot) 00e05242ae
bpo-14117: Make minor tweaks to turtledemo (GH-8002)
The 'wikipedia' example is now 'rosette', describing what it draws.
The 'penrose' print output is reduced.  The 'tree' '1024'
output is eliminated.
(cherry picked from commit 891a1f86d4)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-28 22:32:16 -07:00
Miss Islington (bot) c00144cd77
bpo-27500: Fix static version of getaddrinfo to resolve IPv6 (GH-7993)
(cherry picked from commit d904c238ca)

Co-authored-by: Yury Selivanov <yury@magic.io>
2018-06-28 19:22:39 -07:00
Miss Islington (bot) 0ebd1bc94a
bpo-31546: Fix input hook integration (GH-7978)
(cherry picked from commit 9b9d58f0d8)

Co-authored-by: Thomas A Caswell <tcaswell@gmail.com>
2018-06-28 10:47:54 -07:00
Ned Deily 28c6b94f26 Fix NEWS entry for bpo-31647 2018-06-27 18:01:58 -04:00
Ned Deily 853a36a53a Python 3.6.6
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlsyzzMACgkQLTR+pqpl
 Qh3MexAA27PxEfxPv+zDetmsAc89x0UDfnYMlxfBUZN9KPeQXBFJ6/KBY/bnOzUn
 gKaNilTZGclg0/LOWt73nAqQgjVr/rnPgvq9aWiiWSyYDa+5+l+e/0oGGUb77zW7
 9Jmz/J/hwxVQVD42okJjzJlg/6S4LZMGBqg1QtoCkLZ6FBbbIIgbDMmkhWXL6ZFP
 wtRi6EN/0t0ke+YY5hiNdKVF9Dk2XPk6/V2g1mvzcKcGEzexQ3Jmqc/c7O1yUxQd
 1ZAb1CzmUENNPYeLSLsSgj2HY/9rJ4TbJNqD3NjNC16uoGLrLQsObaM7fGQezRLc
 NB//33X9raFQiY6XZLsH1mDYRyxDg3HhkUZKC3+xjrnCXpIgUQJpZ55Pk6oof0TP
 zTGMTb7ijbTh2qjTjcLTpYldUwHJLeY5g/9THK1GsGOQx2RqhaLXRCdg9qMky7Qy
 PqnoDc8/ZAe7CortJlC8QM49IgKR70+JVy7lY/R73rS2vXNNOCAsLooRB1x/CSnE
 uBEy+WQMcp4J2fIQMOLIICCwyZdvNhFmGS8YoaKpl5rVr3GatdZMGgY3V11RhmSG
 WP09iKdfbvwSbSGOF87K5WlUJMTSChK9t9gRFDuPLkspDX8F4aTdWPyhaNfrwZRu
 s4ws/irF0oapHZXWgk/wY/9pixAg2kAiUAtLYg2GArVsnZXDCxs=
 =bhX0
 -----END PGP SIGNATURE-----

Merge 3.6.6 final changes
2018-06-27 17:59:12 -04:00
Miss Islington (bot) acda5ea916 bpo-24567: Random subnormal.diff (GH-7954) (GH-7956)
Handle subnormal weights for choices()
(cherry picked from commit ddf7171911)

Co-authored-by: Raymond Hettinger <rhettinger@users.noreply.github.com>
2018-06-27 02:37:17 -07:00
Miss Islington (bot) 5d2d9d7c08
bpo-33975: Avoid small type when running IDLE's htests. (GH-7944)
Import pyshell first in htest to call SetProcessDpiAwareness on Windows
before tkinter.Tk() is called for the htest. Apparently, 'root.destroy()'
undoes a previous 'root = Tk()'. Since IDLE unittests always destroy roots,
a unittest before an htest does not require anything more to work right.
Since part of the purpose of human-viewed tests is to determine that
widgets look right, it is important that they look the same for testing
as when running IDLE.
(cherry picked from commit 3c8043d8fa)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-26 21:48:55 -07:00
Miss Islington (bot) 5dc3f23b5f
bpo-33956: update vendored expat to 2.2.5 (GH-7925)
(cherry picked from commit 4e21100fa7)

Co-authored-by: Benjamin Peterson <benjamin@python.org>
2018-06-26 19:48:17 -07:00
Ned Deily 4cf1f54eb7 3.6.6 final 2018-06-26 19:39:50 -04:00
Victor Stinner 1d55888a78
bpo-33873: Backport regrtest from master to 3.7 (GH-7935) (GH-7937)
* bpo-33718: regrtest: use format_duration() to display failed tests (GH-7686)

* Enhance also format_duration(): work on integers and rounds towards
  +infinity (math.ceil).
* Write unit tests on format_duration()

(cherry picked from commit 4ffe9c2b25)

* bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)

regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
(cherry picked from commit cac4fef886)

* bpo-33873: Fix bug in `runtest.py` and add checks for invalid `-R` parameters (GH-7735)

Fix bug in `Lib/test/libregrtest/runtest.py` that makes running tests an extra time than the specified number of runs.

Add check for invalid --huntrleaks/-R parameters.

(cherry picked from commit 58ed7307ea)
(cherry picked from commit d1f9481b7a)
2018-06-27 00:44:43 +02:00
Miss Islington (bot) 8f8ad2c382
bpo-33451: Close pyc files before calling PyEval_EvalCode() (GH-7884)
Directly executed pyc files were being kept open longer than necessary.
(cherry picked from commit ea737751b1)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2018-06-23 20:41:40 -07:00
Victor Stinner 1094891b2e
bpo-33916: Fix bz2 and lzma init when called twice (GH-7843) (GH-7872)
bz2, lzma: When Decompressor.__init__() is called twice, free the old
lock to not leak memory.

(cherry picked from commit 9b7cf75721)
2018-06-23 15:06:11 +02:00
Victor Stinner 78392885c9
bpo-30345: Add -g to LDFLAGS for LTO (GH-7709) (GH-7826)
Add -g to LDFLAGS when compiling with LTO to get debug symbols.
2018-06-22 09:10:42 +02:00
Miss Islington (bot) a0622f1071
bpo-33905: Add test for idlelib.stackview.StackBrowser. (GH-7852)
Increases coverage by 44%.
(cherry picked from commit bcd3a1a18d)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
2018-06-21 19:49:06 -07:00