Commit Graph

98562 Commits

Author SHA1 Message Date
Miss Islington (bot) 645fa19f15 bpo-32302: Fix distutils bdist_wininst for CRT v142 (GH-4851) (#4861)
CRT v142 is binary compatible with CRT v140.
(cherry picked from commit 9e7c136ad8)
2017-12-14 12:00:50 +01:00
Victor Stinner 1d2a387b95
bpo-32316: Travis CI: use PYTHON_FOR_REGEN=python3 (#4853)
"make regen-all" requires a working python3.6 or python3. Without
"python: 3.6", Travis CI provides a "python3.6" script which ony
write an error.

Use "python3" instead.
2017-12-14 00:51:45 +01:00
Miss Islington (bot) 4a97809a38 trivial: link updates in documentation (GH-2765) (#4835)
(cherry picked from commit 4f29f3c84b)
2017-12-13 14:45:19 +02:00
Antoine Pitrou b6263ca313
[3.6] Test atexit shutdown mechanism in a subprocess (GH-4828) (#4829)
* Test atexit shutdown mechanism in a subprocess.
(cherry picked from commit fc5db95e00)
2017-12-13 11:53:59 +01:00
Miss Islington (bot) b0358e8784 bpo-32284: Fix documentation of BinaryIO and TextIO (GH-4832) (#4833)
(cherry picked from commit c3e070f849)
2017-12-13 10:59:01 +02:00
Miss Islington (bot) f4b814f9a2 Fix improper use of re.escape() in tests. (GH-4814) (#4816)
(cherry picked from commit b748e3b258)
2017-12-12 20:29:05 +02:00
Miss Islington (bot) eb2f222aae Fix implementation dependent assertion in test_plistlib. (GH-4813) (#4815)
It is failed with an advanced optimizer.
(cherry picked from commit 0e069a1597)
2017-12-12 19:53:02 +02:00
Miss Islington (bot) 78cd00b799 bpo-31942: Document optional support of start and stop attributes in Sequence.index method (GH-4277) (#4811)
(cherry picked from commit 5ce0a2a100)
2017-12-12 11:58:26 +01:00
Miss Islington (bot) ce5a3cd9b1 bpo-32255: Always quote a single empty field when write into a CSV file. (GH-4769) (#4810)
This allows to distinguish an empty row from a row consisting of a single empty field.
(cherry picked from commit 2001900b0c)
2017-12-12 12:56:40 +02:00
Miss Islington (bot) 82adaf5ffe Fix idlelib comment typos reported by Mike on pull request 4803. (GH-4807) (#4809)
(cherry picked from commit e570211406)
2017-12-11 23:29:34 -05:00
Miss Islington (bot) 0aa2a1d003 bpo-22671: Clarify and test default read method implementations (GH-4568) (#4796)
Original patch written by Martin Panter, enhanced by Sanyam Khurana.
(cherry picked from commit 1b74f9b77a)
2017-12-11 15:27:25 +01:00
Miss Islington (bot) 71d8f36eb4 bpo-32252: Fix faulthandler_suppress_crash_report() (GH-4794) (#4795)
Fix faulthandler_suppress_crash_report() used to prevent core dump files
when testing crashes. getrlimit() returns zero on success.
(cherry picked from commit 48d4dd974f)
2017-12-11 14:17:06 +01:00
Miss Islington (bot) f446b24415 Removed doubled 'bpo-'. (GH-4777) (#4780)
(cherry picked from commit f658641a05)
2017-12-10 05:38:38 -05:00
Vinay Sajip 63868181a9
bpo-32212: Updated logging documentation to make parameter names more consistent with source. (GH-4765) (GH-4767)
(cherry picked from commit a9f8df646a)
2017-12-09 12:28:16 +00:00
Miss Islington (bot) a04ca12e12 bpo-32208: update threading.Semaphore docs and add unit test (GH-4709) (#4750)
* fix issue32208: update threading.Semaphore docs and add unit test to validate correct behavior

* add test for blocking

* Update threading.rst

* semaphore: remove documentation validation tests and move 'return value' test to BaseSemaphore
(cherry picked from commit a0374dd34a)
2017-12-07 20:48:35 +02:00
Miss Islington (bot) 03031fbc7d bpo-32199: The getnode() ip getter now uses 'ip link' instead of 'ip link list' (GH-4696) (#4747)
(cherry picked from commit 961dbe0548)
2017-12-07 13:48:14 +01:00
Miss Islington (bot) 8676ac5419 Allows non-critical upload steps to fail (GH-4742) (#4743)
(cherry picked from commit 9ab11b3a02)
2017-12-06 12:12:44 -08:00
Ned Deily f722e8c993 Bump to 3.6.4rc1+ 2017-12-05 20:46:02 -05:00
Ned Deily ff69423492 Python 3.6.4rc1
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEDZbfTUEQ5cQ/v7F/LTR+pqplQh0FAlomWJMACgkQLTR+pqpl
 Qh2zrg/+Pt0zn4IwkN/Kjd8K/anUMiNtLfhXalFXgYuyK0kkhkQD58Uh2jGD3zfq
 zrDT2dsFSmLMthIIrHade1kznnQ752+uIAL4Ohytk71vTo2Pjmfd38wWRtE8unHm
 8WKHDraR7mQa5HeALOAiwdKZvfMW17SqUiffhbBcz6dOY1sgnR8LfvsgM8BR/IQK
 oBm2Ywpl8tJ7BNRTmKG9HvxZURhV/6D5MGEJA1W7cQHS9RAdZ5zqlTbqB6K2tCl4
 o91DXAfKatCi9gBJfx3vPS+Cw557wPFkVcwRSUrgns3l0hrFS5n77uHoJpKlT2lx
 e0YYx/EilES2UpgtCqPswNpvNIs0wui83ZSJFvDy5OTPnDAImZ0v8iNc1c729bbD
 JsOPXNXv9mxtkrmbWEzuDJp0vI4VrjLbCiIOtLbbQD8n01FqgimoUPyPGpPr2Gwl
 8a7eUs5l3a1fr8S4urxn4W+aVxLo2txtP5j+zRtw0o1OPX1qnJ2ajOS9gr6Q0Oip
 1crR/Um7YIP8YqXqhq54YqYvVDjOg4/Y9F77fUNTiKRP4N8Ungl5GXv2yG8bJ5Fl
 lWDa7o+WWJIOPZMW9ItTexvZy/4oiGSShN/i0qeiBNLvA9kUby+POxCzk4ipPymP
 4DQPWU+e+OEvyILzBuRPyV+4buONMml1TUuQQPUJv+IkoeJ5OAo=
 =2R3W
 -----END PGP SIGNATURE-----

Merge tag 'v3.6.4rc1' into 3.6
2017-12-05 20:39:16 -05:00
Miss Islington (bot) 7a6f28f280 bpo-30928: update idlelib/NEWS.txt. (GH-4706) (#4707)
(cherry picked from commit 2c0c68d927)
2017-12-05 13:44:09 -05:00
Ned Deily 3398dcb14f Bump to 3.6.4rc1 2017-12-05 03:26:08 -05:00
Ned Deily de4c3f312c Update NEWS and pydoc topics. 2017-12-05 03:17:05 -05:00
Ned Deily 0da25972fd Tidy NEWS entry. 2017-12-05 02:41:31 -05:00
Miss Islington (bot) 3b55416700 Add a missing space in tkinter documentation. (GH-4692) (GH-4722)
(cherry picked from commit ae342cf7de)
2017-12-04 21:16:20 -08:00
Miss Islington (bot) d9cadc5f59 [3.6] bpo-31380: Skip test_httpservers test_undecodable_file on macOS. (GH-4720) (#4721)
The undecodable file name cannot be created on macOS APFS file systems.
(cherry picked from commit b3edde8dd4)
2017-12-05 00:03:29 -05:00
Mariatta e2ba552319
bpo-28791: Update Windows builds to use SQLite 3.21.0. (GH-4246). (GH-4717)
(cherry picked from commit 31af650ee2)
2017-12-04 20:09:57 -08:00
Miss Islington (bot) 0bec5e147a [3.6] bpo-31392: Update macOS installer to use OpenSSL 1.0.2m (GH-4715) (#4716)
(cherry picked from commit 24e046987b)
2017-12-04 22:54:43 -05:00
Miss Islington (bot) b0576278b2 [bpo-28556] Minor fixes for typing module (GH-4710) (#4713)
(cherry picked from commit 29bc193210)
2017-12-04 22:02:02 -05:00
Ned Deily a72e7bf563
[3.6] bpo-28791: Update macOS installer to use SQLite 3.21.0. (#4245) (#4711) 2017-12-04 21:29:30 -05:00
Miss Islington (bot) 9da33c8212 bpo-32207: Improve tk event exception tracebacks in IDLE. (GH-4703) (#4705)
When tk event handling is driven by IDLE's run loop, a confusing
and distracting queue.EMPTY traceback context is no longer added
to tk event exception tracebacks.  The traceback is now the same
as when event handling is driven by user code.  Patch based on
a suggestion by Serhiy Storchaka.
(cherry picked from commit 1e2fcac497)
2017-12-04 17:02:32 -05:00
Miss Islington (bot) 6e687948b0 bpo-30928: Update idlelib/NEWS.txt to 2017 Dec 3. (GH-4701) (#4702)
Patches are in 3.7.0a3 even if this update is not.
(cherry picked from commit 21255fc393)
2017-12-04 15:23:18 -05:00
Miss Islington (bot) a87ba60fe5 bpo-27240 Rewrite the email header folding algorithm. (GH-3488) (#4693)
The original algorithm tried to delegate the folding to the tokens so
that those tokens whose folding rules differed could specify the
differences.  However, this resulted in a lot of duplicated code because
most of the rules were the same.

The new algorithm moves all folding logic into a set of functions
external to the token classes, but puts the information about which
tokens can be folded in which ways on the tokens...with the exception of
mime-parameters, which are a special case (which was not even
implemented in the old folder).

This algorithm can still probably be improved and hopefully simplified
somewhat.

Note that some of the test expectations are changed.  I believe the
changes are toward more desirable and consistent behavior: in general
when (re) folding a line the canonical version of the tokens is
generated, rather than preserving errors or extra whitespace.
(cherry picked from commit 85d5c18c9d)
2017-12-03 19:46:23 -05:00
Miss Islington (bot) 30a6bc8429 bpo-31619: Fixed integer overflow in converting huge strings to int. (GH-3884) (#4690)
(cherry picked from commit 29ba688034)
2017-12-03 23:27:21 +02:00
Nick Coghlan c8f32aae0a
[3.6] bpo-32176: Set CO_NOFREE in the code object constructor (GH-4684)
Previously, CO_NOFREE was set in the compiler, which meant
it could end up being set incorrectly when code objects
were created directly. Setting it in the constructor based
on freevars and cellvars ensures it is always accurate,
regardless of how the code object is defined.

(cherry picked from commit 078f1814f1)
2017-12-03 23:32:54 +10:00
Miss Islington (bot) 2ad350a713 [3.6] bpo-31589 : Build PDF using xelatex for better UTF8 support. (GH-3940) (#4683)
Also addresses doc build failures documented in bpo-32200.
(cherry picked from commit 7324b5ce8e)
2017-12-02 17:35:08 -05:00
Miss Islington (bot) 9881e4e538 Don't hide unexpected errors in PyErr_WarnExplicitObject(). (GH-4585) (#4662)
(cherry picked from commit a561862048)
2017-12-01 09:21:45 +02:00
Miss Islington (bot) 8bcd41040a bpo-32186: Release the GIL during lseek and fstat (GH-4652) (#4661)
In _io_FileIO_readall_impl(), lseek() and _Py_fstat_noraise() were called
without releasing the GIL. This can cause all threads to hang for
unlimited time when calling FileIO.read() and the NFS server is not
accessible.
(cherry picked from commit 6a89481680)
2017-12-01 07:26:31 +01:00
Victor Stinner e10c9de9d7
bpo-20891: Fix PyGILState_Ensure() (#4650) (#4655)
When PyGILState_Ensure() is called in a non-Python thread before
PyEval_InitThreads(), only call PyEval_InitThreads() after calling
PyThreadState_New() to fix a crash.

Add an unit test in test_embed.

Enhance also embedded tests, backport from master:

* Add test_pre_initialization_api()
* Set PYTHONIOENCODING environment variable in
  test_forced_io_encoding()

(cherry picked from commit b4d1e1f7c1)
2017-11-30 23:36:49 +01:00
Victor Stinner 29cb50ba34
[3.6] make tags: index also Modules/_ctypes/ (#4648) (#4659)
* `make tags` fixes (GH-717)

* Fix `make tags` warnings

`make tags` target tries to find C sources and headers in "Grammar" and
"Mac" folders and generates these warnings:

    ctags: Warning: cannot open source file "Grammar/*.[ch]" : No such file or directory
    ctags: Warning: cannot open source file "Mac/*.[ch]" : No such file or directory

This commit changes $SRCDIRS variable in configure.ac to remote these
directories. This variable is used only for tags generation.

Also, "configure" was regenerated with `autoreconf`.

* Fix `make tags` fail on non-default tag names

When ctags overrides default tags filename (e.g. `-f .tags`) `make tags`
is failed because it assumes to see default `tags` filename:

    sort: cannot read: tags: No such file or directory

This commit explicitly specifies "tags" filename for tags generation.

(cherry picked from commit 8a543c0bc7)

* make tags: index also Modules/_ctypes/ (#4648)

Avoid also "cd $(srcdir)" to not change the current directory.

(cherry picked from commit 3be3b97a97)
2017-11-30 23:34:21 +01:00
Miss Islington (bot) 8cd31082fb bpo-32072: Fix issues with binary plists. (GH-4455) (#4654)
* Fixed saving bytearrays.
* Identical objects will be saved only once.
* Equal references will be load as identical objects.
* Added support for saving and loading recursive data structures.
(cherry picked from commit a897aeeef6)
2017-12-01 00:15:30 +02:00
Miss Islington (bot) c91bf742e5 bpo-28416: Break reference cycles in Pickler and Unpickler subclasses (GH-4080) (#4653)
with the persistent_id() and persistent_load() methods.
(cherry picked from commit 986375ebde)
2017-11-30 23:30:39 +02:00
Miss Islington (bot) 92a2c07b71 Skip test_socket.test_sha256() on linux < 4.5 (GH-4643) (#4645)
bpo-31705.
(cherry picked from commit 86afc1f2a7)
2017-11-30 14:43:43 +01:00
Victor Stinner dedcbee04c
[3.6] bpo-30923, bpo-31279: Fix GCC warnings (#4620)
* bpo-30923: Silence fall-through warnings in libexpat build. (#3205)

(cherry picked from commit 9e1e6f528f)

* bpo-31279: Silence -Wstringop-overflow warning. (#3207)

(cherry picked from commit dce6502059)
2017-11-30 00:00:35 +01:00
Victor Stinner 06be9daf6f
bpo-32030: Fix test_sys.test_getallocatedblocks() (#4637)
Skip the test if PYTHONMALLOC environment variable is set.
2017-11-29 23:51:41 +01:00
Barry Warsaw 23cc8c0f9e
[3.6] bpo-32107 - Backport bitmask check fix (GH-4576) (#4591)
Remove a flakey test and rewrite another one for readability.
2017-11-29 10:35:02 -05:00
Miss Islington (bot) b0df786258 bpo-32139: test_strftime does not anymore modify the locale (GH-4569) (#4635)
(cherry picked from commit cc55e78aca)
2017-11-29 16:18:22 +01:00
Miss Islington (bot) 957aef7c41 bpo-32164: Delete unused file idlelib/tabbedpages.py (GH-4628) (#4631)
(cherry picked from commit 041efd292e)
2017-11-29 01:07:21 -05:00
Miss Islington (bot) a8de696ddd bpo-30781: Remove unused imports in idlelib.configdialog. (GH-4627) (#4630)
(cherry picked from commit e8f7c78a86)
2017-11-28 22:46:32 -05:00
Miss Islington (bot) 38ecf57306 bpo-32100: Delete unneeded import in idlelib.pathbrowser. (GH-4626) (#4629)
(cherry picked from commit fd6f8c56b9)
2017-11-28 22:15:06 -05:00
Miss Islington (bot) 230ffeae0a bpo-32110: codecs.StreamReader.read(n) now returns not more than n (GH-4499) (#4622)
characters/bytes for non-negative n.  This makes it compatible with
read() methods of other file-like objects.
(cherry picked from commit 219c2de5ad)
2017-11-29 02:06:53 +02:00