]> granicus.if.org Git - python/log
python
7 years agoFix test_socket.test_create_connection() (GH-4206) (#4208)
Miss Islington (bot) [Wed, 1 Nov 2017 13:07:25 +0000 (06:07 -0700)]
Fix test_socket.test_create_connection() (GH-4206) (#4208)

bpo-31910: test_create_connection() now catchs also EADDRNOTAVAIL to
fix the test on Travis CI.
(cherry picked from commit 280c22a82a6756e9caffef031c564fd98f1b50e7)

7 years agoRemove nested comments in blake2 (GH-4173) (#4214)
Miss Islington (bot) [Wed, 1 Nov 2017 12:58:40 +0000 (05:58 -0700)]
Remove nested comments in blake2 (GH-4173) (#4214)

Replace occurence of nested comments in blake2 reference implementation
with preprocessor directive for disabling unused code.

`blake2s-load-xop.h` is conditionally pulled in only on chips with XOP
support, among others the AMD Bulldozer. The malformed comments in the
source file breaks the build of `hashlib`'s `_blake2` on GCC 6.3.0.

Official reference code on github uses `GH-if` so this change should be
uncontroversial.
(cherry picked from commit 388cd85e51aa9c73f8e7f35f0d06c258be7b579c)

7 years agobpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) (#4212)
Miss Islington (bot) [Wed, 1 Nov 2017 12:35:41 +0000 (05:35 -0700)]
bpo-25720: Fix the method for checking pad state of curses WINDOW (GH-4164) (#4212)

Modify the code to use ncurses is_pad() instead of checking WINDOW
_flags field.  If your platform does not provide the is_pad(), the
existing way that checks the field will be enabled.

Note: This change does not drop support for platforms where do not
have both WINDOW _flags field and is_pad().
(cherry picked from commit 8bc7d63560024681dce9f40445f2877b2987e92c)

7 years agobpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) (#4201)
Miss Islington (bot) [Tue, 31 Oct 2017 18:16:07 +0000 (11:16 -0700)]
bpo-31893: Fix errors in b9052a0f91d2e83bbc27267247a5920c82b242a3. (GH-4196) (#4201)

* Fix a compilation error on FreeBSD.
* Fix the data attribute size on Mac OS X.
(cherry picked from commit 2298fad5ff907dd48ea0fb5c71fa22334ef28c6b)

7 years agobpo-20064: Document PyObject_Malloc() (GH-4199) (#4203)
Miss Islington (bot) [Tue, 31 Oct 2017 16:56:11 +0000 (09:56 -0700)]
bpo-20064: Document PyObject_Malloc() (GH-4199) (#4203)

Document the following functions:

* PyObject_Malloc()
* PyObject_Calloc()
* PyObject_Realloc()
* PyObject_Free()

Fix also PyMem_RawFree() documentation.
(cherry picked from commit ec2cbdd1dff2c51788136480b2085e77506ebf34)

7 years agobpo-31897: Convert unexpected errors when read bogus binary plists into InvalidFileEx...
Miss Islington (bot) [Tue, 31 Oct 2017 13:58:55 +0000 (06:58 -0700)]
bpo-31897: Convert unexpected errors when read bogus binary plists into InvalidFileException. (GH-4171) (#4192)

(cherry picked from commit db91e0fe2417f075693a194a492b1699829871e7)

7 years agobpo-31626: Fixed a bug in debug memory allocator. (GH-3844) (#4191)
Miss Islington (bot) [Tue, 31 Oct 2017 13:58:33 +0000 (06:58 -0700)]
bpo-31626: Fixed a bug in debug memory allocator. (GH-3844) (#4191)

Removed a code that incorrectly detected in-place resizing in realloc()
 and wrote to freed memory.
(cherry picked from commit b484d5606ca76f9bbd0f5de7a6ef753400213e94)

7 years agobpo-31893: Fixed select.kqueue(). (GH-4166) (#4190)
Miss Islington (bot) [Tue, 31 Oct 2017 12:46:15 +0000 (05:46 -0700)]
bpo-31893: Fixed select.kqueue(). (GH-4166) (#4190)

* Fixed the layout of the kqueue_event structure on OpenBSD and NetBSD.
* Fixed the comparison of the kqueue_event objects.
(cherry picked from commit b9052a0f91d2e83bbc27267247a5920c82b242a3)

7 years agobpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)
Miss Islington (bot) [Tue, 31 Oct 2017 12:33:09 +0000 (05:33 -0700)]
bpo-31891: Fix building the curses module on NetBSD. (GH-4165) (#4189)

(cherry picked from commit baac01e629d90f63dfde6b5cc433f4bc65c5feeb)

7 years agobpo-31629: Add support.SaveSignals (#4183) (#4187)
Victor Stinner [Tue, 31 Oct 2017 10:45:01 +0000 (03:45 -0700)]
bpo-31629: Add support.SaveSignals (#4183) (#4187)

test_curses now saves/restores signals. On FreeBSD, the curses module
sets handlers of some signals, but don't restore old handlers when
the module is deinitialized.

(cherry picked from commit 19f68301a1295a9c30d9f28b8f1479cdcccd75aa)

7 years ago[3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)
Pablo Galindo [Tue, 31 Oct 2017 00:46:34 +0000 (00:46 +0000)]
[3.6] bpo-31852: Fix segfault caused by using the async soft keyword (GH-4122)

7 years agobpo-31304: Update starmap_async documentation. (GH-4168) (GH-4177)
Miss Islington (bot) [Mon, 30 Oct 2017 18:47:39 +0000 (11:47 -0700)]
bpo-31304: Update starmap_async documentation. (GH-4168) (GH-4177)

Update the kwarg in the documentation of `multiprocessing.pool.Pool.starmap_async`, from `error_back` to `error_callback` to match the source code.
(cherry picked from commit 11225753a89c2907bb717e6c050fe907e5e11829)

7 years ago[3.6] bpo-20047: Make bytearray methods partition() and rpartition() rejecting (GH...
Serhiy Storchaka [Sun, 29 Oct 2017 10:24:45 +0000 (12:24 +0200)]
[3.6] bpo-20047: Make bytearray methods partition() and rpartition() rejecting (GH-4158) (#4162)

separators that are not bytes-like objects..
(cherry picked from commit a2314283ff87c65e1745a42c2f2b716b1a209128)

7 years agobpo-31065: Add doc about Popen.poll returning None. (GH-3169)
Berker Peksag [Sun, 29 Oct 2017 04:06:48 +0000 (07:06 +0300)]
bpo-31065: Add doc about Popen.poll returning None. (GH-3169)

(cherry picked from commit 006617ff7d6df3fdedcfe53e94ee2c52cc796437)

7 years agobpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156)
Miss Islington (bot) [Sat, 28 Oct 2017 11:43:16 +0000 (04:43 -0700)]
bpo-31836: Test_code_module now passes with sys.ps1, ps2 set (GH-4070) (#4156)

(cherry picked from commit 5a4bbcd479ce86f68bbe12bc8c16e3447f32e13a)

7 years agoIDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)
Miss Islington (bot) [Sat, 28 Oct 2017 01:39:37 +0000 (18:39 -0700)]
IDLE -- Restrict shell prompt manipulaton to the shell. (GH-4143) (#4155)

Editor and output windows only see an empty last prompt line.
This simplifies the code and fixes a minor bug when newline is inserted.
Sys.ps1, if present, is read on Shell start-up, but is not set or changed.
(cherry picked from commit e86172d63af5827a3c2b55b80351cb38a26190eb)

7 years agobpo-31860: Make the font sample in the IDLE font configuration dialog editable. ...
Miss Islington (bot) [Sat, 28 Oct 2017 00:59:38 +0000 (17:59 -0700)]
bpo-31860: Make the font sample in the IDLE font configuration dialog editable. (GH-4106) (#4154)

Changes persist while IDLE remains open
(cherry picked from commit ed6554c487fb2403bc88be6deee611c7a4171d33)

7 years agobpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)
Miss Islington (bot) [Fri, 27 Oct 2017 13:17:36 +0000 (06:17 -0700)]
bpo-31174: Improve the code of test_tools.test_unparse. (GH-4146) (#4148)

(cherry picked from commit 7351f9e5a91c403d15c6d556f9989b443f1296f9)

7 years agobpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)
Miss Islington (bot) [Fri, 27 Oct 2017 04:47:00 +0000 (21:47 -0700)]
bpo-31053: Remove redundant 'venv' argument in venv example (GH-2907)

(cherry picked from commit d609b0c24ebdb748cabcc6c062dfc86f9000e6c4)

7 years ago[3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). (#4135)
xdegaye [Thu, 26 Oct 2017 15:48:48 +0000 (17:48 +0200)]
[3.6] bpo-30697: Fix PyErr_NormalizeException() when no memory (GH-2327). (#4135)

(cherry picked from commit 56d1f5ca32892c7643eb8cee49c40c1644f1abfe)

7 years agoFix trailing whitespaces in C and Python files. (#4131)
Serhiy Storchaka [Thu, 26 Oct 2017 14:00:13 +0000 (17:00 +0300)]
Fix trailing whitespaces in C and Python files. (#4131)

7 years ago[3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (GH-4118) ...
Serhiy Storchaka [Thu, 26 Oct 2017 09:02:54 +0000 (12:02 +0300)]
[3.6] bpo-21720: Restore the Python 2.7 logic in handling a fromlist. (GH-4118) (#4128)

BytesWarning no longer emitted when the fromlist argument of
__import__() or the __all__ attribute of the module contain bytes
instances..
(cherry picked from commit 41c56940c6edf3ea169332a6b039b6c8796f0475)

7 years agobpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)
Miss Islington (bot) [Thu, 26 Oct 2017 08:38:14 +0000 (01:38 -0700)]
bpo-30937: Make usage of newline='' consistent in csv docs (GH-2730)

(cherry picked from commit 275d2d9c4663a1ea8d1f7c8778567a735b0372c1)

7 years agobpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (#4111)
Serhiy Storchaka [Tue, 24 Oct 2017 20:11:42 +0000 (23:11 +0300)]
bpo-25287: Backport new tests for crypt and skip test_crypt on OpenBSD. (#4111)

7 years ago[3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)
xdegaye [Tue, 24 Oct 2017 14:42:33 +0000 (16:42 +0200)]
[3.6] bpo-30817: Fix PyErr_PrintEx() when no memory (GH-2526). (#4107)

(cherry picked from commit 66caacf2f0d6213b049a3097556e28e30440b900)

7 years agobpo-31174: Fix test_tools.test_unparse (GH-4102) (#4104)
Miss Islington (bot) [Tue, 24 Oct 2017 11:18:00 +0000 (04:18 -0700)]
bpo-31174: Fix test_tools.test_unparse (GH-4102) (#4104)

test_unparse.DirectoryTestCase now stores the names sample to always
test the same files. It prevents false alarms when hunting reference
leaks.
(cherry picked from commit 8e482bea21cb942804234e36d3c6c896aabd32da)

7 years agobpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)
Miss Islington (bot) [Mon, 23 Oct 2017 22:08:03 +0000 (15:08 -0700)]
bpo-31847: Fix commented out tests in test_syntax. (GH-4084) (#4095)

SyntaxError now is raised instead of SyntaxWarning.
(cherry picked from commit 3b66ebe7727dba68c2c6ccf0cd85a4c31255b9b4)

7 years agobpo-30722: Make redemo work with Python 3.6+ (GH-2311)
Miss Islington (bot) [Mon, 23 Oct 2017 17:40:36 +0000 (10:40 -0700)]
bpo-30722: Make redemo work with Python 3.6+ (GH-2311)

(cherry picked from commit 62adc55aff0b78447568f73bd1abc610d2784bf8)

7 years agobpo-31752: Fix possible crash in timedelta constructor called with custom integers...
Miss Islington (bot) [Mon, 23 Oct 2017 15:20:13 +0000 (08:20 -0700)]
bpo-31752: Fix possible crash in timedelta constructor called with custom integers. (GH-3947) (#4086)

Bad remainder in divmod() in intermediate calculations caused an assertion failure.
(cherry picked from commit 4ffd4653a7ec9c97775472276cf5e159e2366bb2)

7 years ago[3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)
Miss Islington (bot) [Mon, 23 Oct 2017 13:05:46 +0000 (06:05 -0700)]
[3.6] bpo-30695: Add set_nomemory(start, stop) to _testcapi (GH-2406) (#4083)

(cherry picked from commit 85f643023fed3d4e2fb8e399f9ad57f3a65ef237)

7 years ago[3.6] bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (GH-3729). (#4081)
Serhiy Storchaka [Mon, 23 Oct 2017 12:00:41 +0000 (15:00 +0300)]
[3.6] bpo-31572: Get rid of using _PyObject_HasAttrId() in pickle. (GH-3729). (#4081)

(cherry picked from commit 04e36af9b88cd5e80fc818e51d46f07252a2ff3f)

7 years agobpo-28286: Add tests for the mode argument of GzipFile. (GH-4074) (#4076)
Miss Islington (bot) [Sun, 22 Oct 2017 11:53:43 +0000 (04:53 -0700)]
bpo-28286: Add tests for the mode argument of GzipFile. (GH-4074) (#4076)

(cherry picked from commit bcbdd2f8db396c3f0ec9186162b39b5a34effa0e)

7 years ago[3.6] bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed...
Antoine Pitrou [Sun, 22 Oct 2017 10:27:13 +0000 (12:27 +0200)]
[3.6] bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed or None. (GH-4073).  (#4075)

* bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed or None. (#4073)

(cherry picked from commit daeefd2e049b74340307481112a39f77de0f4769)

* [3.6] bpo-28326: Fix multiprocessing.Process when stdout and/or stderr is closed or None. (GH-4073).
(cherry picked from commit daeefd2e049b74340307481112a39f77de0f4769)

7 years agobpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) (#4059)
Miss Islington (bot) [Fri, 20 Oct 2017 14:41:29 +0000 (07:41 -0700)]
bpo-31825: Fixed OverflowError in the 'unicode-escape' codec (GH-4058) (#4059)

and in codecs.escape_decode() when decode an escaped non-ascii byte.
(cherry picked from commit 56cb465cc93dcb35aaf7266ca3dbe2dcff1fac5f)

7 years agobpo-31632: fix set_protocol() in _SSLProtocolTransport (GH-3817) (GH-3817) (#4052)
Miss Islington (bot) [Thu, 19 Oct 2017 18:12:44 +0000 (11:12 -0700)]
bpo-31632: fix set_protocol() in _SSLProtocolTransport (GH-3817) (GH-3817) (#4052)

(cherry picked from commit ea2ef5d0ca869d4550820ed53bdf56013dbb9546)

7 years agobpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (GH-4044...
Miss Islington (bot) [Thu, 19 Oct 2017 18:11:49 +0000 (11:11 -0700)]
bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (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)

7 years ago[3.6] bpo-31457: Make the `LoggerAdapter.manager` property settable (GH-4042) (#4043)
Miss Islington (bot) [Thu, 19 Oct 2017 01:02:59 +0000 (18:02 -0700)]
[3.6] bpo-31457: Make the `LoggerAdapter.manager` property settable (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)

7 years agoUpdate TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (GH-3998)...
Miss Islington (bot) [Wed, 18 Oct 2017 17:34:27 +0000 (10:34 -0700)]
Update TestCase.assertAlmostEqual and assertNotAlmostEqual docstrings. (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)

7 years ago[3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)
Miss Islington (bot) [Wed, 18 Oct 2017 12:05:16 +0000 (05:05 -0700)]
[3.6] bpo-31334: Fix timeout in select.poll.poll() (GH-3277) (#4033)

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)

7 years ago[3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing in more...
Miss Islington (bot) [Wed, 18 Oct 2017 09:09:57 +0000 (02:09 -0700)]
[3.6] bpo-31806: Use _PyTime_ROUND_TIMEOUT for the timeout argument parsing 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)

7 years ago[3.6] bpo-31786: Make functions in the select module blocking when timeout is a small...
Pablo Galindo [Wed, 18 Oct 2017 08:12:47 +0000 (09:12 +0100)]
[3.6] bpo-31786: Make functions in the select module blocking when timeout is a small negative value. (GH-4003). (#4022)

(cherry picked from commit 2c15b29aea5d6b9c61aa42d2c24a07ff1edb4b46)

7 years agobpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)
Miss Islington (bot) [Wed, 18 Oct 2017 01:47:10 +0000 (18:47 -0700)]
bpo-31676: Fix test_imp.test_load_source() side effect (GH-3871) (GH-3988)

test_load_source() now replaces the current __name__ module with a
temporary module to prevent side effects.
(cherry picked from commit a505ecdc5013cd8f930aacc1ec4fb2afa62d3853)

7 years ago[3.6] bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (GH-4025) (#4028)
Miss Islington (bot) [Tue, 17 Oct 2017 23:53:12 +0000 (16:53 -0700)]
[3.6] bpo-30928: Update idlelib/NEWS.txt to 2017 Oct 17. (GH-4025) (#4028)

(cherry picked from commit 27288de0856c6fbe56354adb312ae706ce8bc7de)

7 years ago[3.6] bpo-13802: Use non-Latin characters in IDLE's Font settings sample. (GH-3960...
Miss Islington (bot) [Tue, 17 Oct 2017 23:51:48 +0000 (16:51 -0700)]
[3.6] bpo-13802: Use non-Latin characters in IDLE's Font settings sample. (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)

7 years ago[3.6] bpo-28603: Fix formatting tracebacks for unhashable exceptions (GH-4014) (...
Miss Islington (bot) [Tue, 17 Oct 2017 22:14:19 +0000 (15:14 -0700)]
[3.6] bpo-28603: Fix formatting tracebacks for unhashable exceptions (GH-4014) (#4024)

(cherry picked from commit de86073a761cd3539aaca6f886a1f55effc0d9da)

7 years ago[3.6] bpo-31799: Make module.__spec__ more discoverable (GH-4010) (#4021)
Miss Islington (bot) [Tue, 17 Oct 2017 19:59:21 +0000 (12:59 -0700)]
[3.6] bpo-31799: Make module.__spec__ more discoverable (GH-4010) (#4021)

bpo-31799: Make module.__spec__ more discoverable
(cherry picked from commit 191e3138200906e43cba9347177914325b54843f)

7 years ago[3.6] bpo-31792: Restore os.environ in test_buffer when import numpy. (GH-4007) ...
Miss Islington (bot) [Mon, 16 Oct 2017 08:21:30 +0000 (01:21 -0700)]
[3.6] bpo-31792: Restore os.environ in test_buffer when import numpy. (GH-4007) (#4009)

(cherry picked from commit 676db4bbf2e7c18dc7c35add17dd3bbdc2d3eeb3)

7 years ago[3.6] completly -> completely (GH-3999) (closes bpo-31788) (#4008)
Miss Islington (bot) [Sun, 15 Oct 2017 19:48:50 +0000 (12:48 -0700)]
[3.6] completly -> completely (GH-3999) (closes bpo-31788) (#4008)

(cherry picked from commit 1295e11d397c6138427296d5f9653a9e7dd69062)

7 years ago[3.6] bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993)
Miss Islington (bot) [Sun, 15 Oct 2017 07:37:07 +0000 (00:37 -0700)]
[3.6] bpo-31754: Fix type of 'itemsize' in PyBuffer_FillContiguousStrides (GH-3993)

(cherry picked from commit 1b9e76ed3a055a53ca67397e928e1b408461900b)

7 years ago[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (GH-4002...
Miss Islington (bot) [Sun, 15 Oct 2017 04:01:28 +0000 (21:01 -0700)]
[3.6] bpo-31780: Fix incorrect error message for ',x', ',b', ',o' specs (GH-4002) (#4004)

Patch by Pablo.
(cherry picked from commit 28773ca7a7aa58a28e42a9eb0066acf71b5a8dc4)

7 years ago[3.6] bpo-25588: Document autotest in idle_test/README.txt. (GH-4000) (#4001)
Terry Jan Reedy [Sun, 15 Oct 2017 03:16:57 +0000 (23:16 -0400)]
[3.6] bpo-25588: Document autotest in idle_test/README.txt. (GH-4000) (#4001)

Follow-up to Victor's patch that enabled autotest to run in IDLE's Shell.
(cherry picked from commit 620f70e)

7 years ago[3.6] bpo-31714: Improved regular expression documentation. (GH-3907). (#3994)
Serhiy Storchaka [Sat, 14 Oct 2017 09:17:14 +0000 (12:17 +0300)]
[3.6] bpo-31714: Improved regular expression documentation. (GH-3907). (#3994)

(cherry picked from commit cd195e2a7ac5c9b2574d5462752b7939641de4a9)

7 years agobpo-31672: Fix string.Template accidentally matched non-ASCII identifiers (GH-3872)
INADA Naoki [Sat, 14 Oct 2017 05:21:59 +0000 (14:21 +0900)]
bpo-31672: Fix string.Template accidentally matched non-ASCII identifiers (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)

7 years ago[3.6] bpo-25588: Fix regrtest when run inside IDLE (GH-3962) (#3987)
Miss Islington (bot) [Fri, 13 Oct 2017 20:42:27 +0000 (13:42 -0700)]
[3.6] bpo-25588: Fix regrtest when run inside IDLE (GH-3962) (#3987)

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)

7 years ago[3.6] Improve test suite customization example (GH-3967)
Miss Islington (bot) [Fri, 13 Oct 2017 03:54:32 +0000 (20:54 -0700)]
[3.6] Improve test suite customization example (GH-3967)

Reported by John Gamboa on docs@p.o at
https://mail.python.org/pipermail/docs/2017-June/031942.html

(cherry picked from commit 925510449984399cf58711843ddfe2e8007c3878)

7 years agoExclude non-default VENVDIR in Doc builds (#3974) (#3975)
Ned Deily [Thu, 12 Oct 2017 20:21:17 +0000 (16:21 -0400)]
Exclude non-default VENVDIR in Doc builds (#3974) (#3975)

7 years ago[3.6] bpo-30058: Fixed buffer overflow in select.kqueue.control(). (GH-1095) (#3973)
Miss Islington (bot) [Thu, 12 Oct 2017 20:20:44 +0000 (13:20 -0700)]
[3.6] bpo-30058: Fixed buffer overflow in select.kqueue.control(). (GH-1095) (#3973)

(cherry picked from commit de072100775cc29e6cd93a75466cecbd1086f258)

7 years agobpo-31766: restore 3.5 to docs version switchers (#3970)
Ned Deily [Thu, 12 Oct 2017 18:19:07 +0000 (14:19 -0400)]
bpo-31766: restore 3.5 to docs version switchers (#3970)

7 years ago[3.6] bpo-31567: add or fix decorator markup in docs (GH-3959) (GH-3966)
Miss Islington (bot) [Thu, 12 Oct 2017 16:33:05 +0000 (09:33 -0700)]
[3.6] bpo-31567: add or fix decorator markup in docs (GH-3959) (GH-3966)

(cherry picked from commit 0e61e67a57deb4abc677808201d7cf3c38138e02)

7 years agobpo-28647: Update -u documentation (GH-3954)
Berker Peksag [Wed, 11 Oct 2017 14:09:57 +0000 (17:09 +0300)]
bpo-28647: Update -u documentation (GH-3954)

* stdout and stderr are always opened in text mode
* and they are line-buffered

Initial patch by Gareth Rees.

7 years ago[3.6] bpo-28157: Improvements for the time module documentation (GH-928)
Miss Islington (bot) [Wed, 11 Oct 2017 13:50:21 +0000 (06:50 -0700)]
[3.6] bpo-28157: Improvements for the time module documentation (GH-928)

* 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)

7 years agobpo-31537: Update readline documentation example. (GH-3925) (GH-3948)
Miss Islington (bot) [Tue, 10 Oct 2017 22:03:14 +0000 (15:03 -0700)]
bpo-31537: Update readline documentation example. (GH-3925) (GH-3948)

Change the code example from using `get_history_length` to `get_current_history_length`.
(cherry picked from commit eeb5ffd54e56dd89a99c74eb512c36d62649cfec)

7 years ago[3.6] bpo-31728: Prevent crashes in _elementtree due to unsafe cleanup of Element...
Miss Islington (bot) [Tue, 10 Oct 2017 21:51:28 +0000 (14:51 -0700)]
[3.6] bpo-31728: Prevent crashes in _elementtree due to unsafe cleanup of Element.text and Element.tail (GH-3924) (#3945)

(cherry picked from commit 39ecb9c71b6e55d8a61a710d0144231bd88f9ada)

7 years agoAllow configure to handle PATH elements with spaces (#3935) (#3937)
Ned Deily [Mon, 9 Oct 2017 18:30:59 +0000 (14:30 -0400)]
Allow configure to handle PATH elements with spaces (#3935) (#3937)

Fix some tests in ./configure for determining macOS compiler choices that could fail if a $PATH element contained spaces.

7 years ago[3.6] bpo-31642: Restore blocking "from" import by setting None in sys.modules. ...
Serhiy Storchaka [Sun, 8 Oct 2017 09:51:55 +0000 (12:51 +0300)]
[3.6] bpo-31642: Restore blocking "from" import by setting None in sys.modules. (GH-3834). (#3923)

(cherry picked from commit f07e2b64df6304a36fb5e29397d3c77a7ba17704)

7 years ago[3.6] bpo-31724: Skip test_xmlrpc_net (GH-3922)
Miss Islington (bot) [Sun, 8 Oct 2017 06:52:08 +0000 (23:52 -0700)]
[3.6] bpo-31724: Skip test_xmlrpc_net (GH-3922)

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)

7 years ago[3.6] bpo-31655: Validate keyword names in SimpleNamespace constructor. (GH-3909...
Miss Islington (bot) [Sat, 7 Oct 2017 20:52:57 +0000 (13:52 -0700)]
[3.6] bpo-31655: Validate keyword names in SimpleNamespace constructor. (GH-3909) (#3920)

(cherry picked from commit 79ba471488b936abda5ba5234b1ea90cbc94cae6)

7 years agobpo-31720: msilib documentation, change MsiError into MSIError (GH-3914) (GH-3917)
Miss Islington (bot) [Sat, 7 Oct 2017 16:00:27 +0000 (09:00 -0700)]
bpo-31720: msilib documentation, change MsiError into MSIError (GH-3914) (GH-3917)

(cherry picked from commit 28f713601d3ec80820e842dcb25a234093f1ff18)

7 years agobpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (GH-3647)...
Rohit Balasubramanian [Sat, 7 Oct 2017 05:27:36 +0000 (10:57 +0530)]
bpo-31507 Add docstring to parseaddr function in email.utils.parseaddr (GH-3647) (GH-3733)

(cherry picked from commit 9e7b9b21fe45f7d93eaf9382fedfa18247d0d2b2)

7 years ago[3.6] bpo-31523: Reliability improvements to the Windows build files (GH-3900) (...
Miss Islington (bot) [Thu, 5 Oct 2017 21:09:30 +0000 (14:09 -0700)]
[3.6] bpo-31523: Reliability improvements to the Windows build files (GH-3900) (#3902)

(cherry picked from commit 2084b30e540d88b9fc752c5bdcc2f24334af4f2b)

7 years ago[3.6] remove tabs from getcompiler.c (GH-3892) (#3893)
Miss Islington (bot) [Thu, 5 Oct 2017 15:41:06 +0000 (08:41 -0700)]
[3.6] remove tabs from getcompiler.c (GH-3892) (#3893)

(cherry picked from commit a8ed11742b4c2115597977ce04fa8e043d9e0792)

7 years ago[3.6] bpo-31178: Mock os.waitpid() in test_subprocess (GH-3896) (#3897)
Miss Islington (bot) [Thu, 5 Oct 2017 14:10:59 +0000 (07:10 -0700)]
[3.6] bpo-31178: Mock os.waitpid() in test_subprocess (GH-3896) (#3897)

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)

7 years ago[3.6] bpo-30872: Update the curses docs to Python 3. (GH-2620) (#3887)
Serhiy Storchaka [Thu, 5 Oct 2017 06:35:45 +0000 (09:35 +0300)]
[3.6] bpo-30872: Update the curses docs to Python 3. (GH-2620) (#3887)

(cherry picked from commit 300dd552b15825abfe0e367ac14cec4c3e050dbc)

7 years ago[3.6] bpo-31667: Fix gettext related links. (GH-3860) (#3886)
Miss Islington (bot) [Wed, 4 Oct 2017 18:06:09 +0000 (11:06 -0700)]
[3.6] bpo-31667: Fix gettext related links. (GH-3860) (#3886)

* Fix incorrect links.
* Remove redundant links.
* Add signatures and index entries for gettext related
functions in the locale module.
(cherry picked from commit c02a1f4ad8fcdbffad2911c5a31c71a17a89d713)

7 years agoRemove retired and security branches from active docs (#3880)
Ned Deily [Wed, 4 Oct 2017 03:03:52 +0000 (23:03 -0400)]
Remove retired and security branches from active docs (#3880)

7 years ago[3.6] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and split() (GH...
Miss Islington (bot) [Tue, 3 Oct 2017 20:50:46 +0000 (13:50 -0700)]
[3.6] bpo-31675: Fix memory leaks in Tkinter's methods splitlist() and 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)

7 years ago[3.6] bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). (GH-3864...
Serhiy Storchaka [Tue, 3 Oct 2017 19:39:37 +0000 (22:39 +0300)]
[3.6] bpo-31673: Fixed typo in the name of Tkinter's method adderrorinfo(). (GH-3864). (#3873)

(cherry picked from commit 929b40a601db868530d6beaafb3256822103a7fb)

7 years ago[3.6] bpo-31619: Fixed a ValueError when convert a string with large number of unders...
Miss Islington (bot) [Tue, 3 Oct 2017 12:38:46 +0000 (05:38 -0700)]
[3.6] bpo-31619: Fixed a ValueError when convert a string with large number of underscores (GH-3827) (#3863)

to integer with binary base.
(cherry picked from commit 85c0b8941f0c8ef3ed787c9d504712c6ad3eb5d3)

7 years agoBump version to 3.6.3+
Ned Deily [Tue, 3 Oct 2017 08:46:04 +0000 (04:46 -0400)]
Bump version to 3.6.3+

7 years agoMerge v3.6.3 into 3.6 branch
Ned Deily [Tue, 3 Oct 2017 08:38:31 +0000 (04:38 -0400)]
Merge v3.6.3 into 3.6 branch

7 years agoBump to 3.6.3 v3.6.3
Ned Deily [Tue, 3 Oct 2017 05:52:02 +0000 (01:52 -0400)]
Bump to 3.6.3

7 years agoUpdate NEWS blurbs for 3.6.3 final
Ned Deily [Tue, 3 Oct 2017 05:36:12 +0000 (01:36 -0400)]
Update NEWS blurbs for 3.6.3 final

7 years agoImprove/fix some Misc/NEWS entries
Ned Deily [Tue, 3 Oct 2017 05:26:32 +0000 (01:26 -0400)]
Improve/fix some Misc/NEWS entries

7 years agoAdd NEWS entries for 3.6.3 final cherrypicks.
Ned Deily [Tue, 3 Oct 2017 05:07:42 +0000 (01:07 -0400)]
Add NEWS entries for 3.6.3 final cherrypicks.

7 years ago[3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)
Miss Islington (bot) [Mon, 2 Oct 2017 16:20:28 +0000 (09:20 -0700)]
[3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)

(cherry picked from commit efb560eee28b6b2418e1231573ca62574d6dc07b)

7 years ago[3.6] bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()...
Miss Islington (bot) [Fri, 29 Sep 2017 22:07:01 +0000 (15:07 -0700)]
[3.6] bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` (GH-3830) (#3831)

This was possible before.  GH-1560 introduced a regression after 3.6.2 got
released where only sequences were accepted now.  This commit addresses this
problem.
(cherry picked from commit 574562c5ddb2f0429aab9af762442e6f9a3f26ab)

7 years ago[3.6] bpo-31423: Fix building the PDF documentation (GH-3693) (GH-3699)
Zachary Ware [Fri, 22 Sep 2017 18:26:19 +0000 (13:26 -0500)]
[3.6] bpo-31423: Fix building the PDF documentation (GH-3693) (GH-3699)

Use prefixed macro names for the `authoraddress` function, add T2A to the font encoding in LaTeX sources to support Cyrillic characters in the PDF documentation, and replace the deprecated `font_size` config option with `pointsize`.
(cherry picked from commit da9b4cfb488119f2493a762fcb1d85c58494f51d)

7 years agoFix build issues in Doc/make.bat (#3663)
Steve Dower [Tue, 19 Sep 2017 21:40:48 +0000 (14:40 -0700)]
Fix build issues in Doc/make.bat (#3663)

7 years ago[3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)
Miss Islington (bot) [Mon, 2 Oct 2017 16:20:28 +0000 (09:20 -0700)]
[3.6] bpo-31662: Fix typos in uploadrelease.bat script (#3858)

(cherry picked from commit efb560eee28b6b2418e1231573ca62574d6dc07b)

7 years ago[3.6] bpo-31516: current_thread() should not return a dummy thread at shutdown (GH...
Miss Islington (bot) [Mon, 2 Oct 2017 15:20:01 +0000 (08:20 -0700)]
[3.6] bpo-31516: current_thread() should not return a dummy thread at shutdown (GH-3673) (#3856)

bpo-31516: current_thread() should not return a dummy thread at shutdown
(cherry picked from commit 1023dbbcb7f05e76053486ae7ef7f73b4cdc5398)

7 years ago[3.6] bpo-31158: Fix nondeterministic read in test_pty (GH-3808) (GH-3852)
Miss Islington (bot) [Mon, 2 Oct 2017 09:57:56 +0000 (02:57 -0700)]
[3.6] bpo-31158: Fix nondeterministic read in test_pty (GH-3808) (GH-3852)

(cherry picked from commit e6f62f69f07892b993910ff03c9db3ffa5cb9ca5)

7 years ago[3.6] IDLE: make filetypes a tuple constant. (GH-3847) (#3848)
Terry Jan Reedy [Sun, 1 Oct 2017 23:37:19 +0000 (19:37 -0400)]
[3.6] IDLE: make filetypes a tuple constant. (GH-3847) (#3848)

Save a bit of code, plus non-tuples get converted anyway to tuples by tkinter for the tk call.
(cherry picked from commit 5961e7c156f90c7f9444ae95b9d3e55114ca2169)

7 years ago[3.6] bpo-31460: Simplify the API of IDLE's Module Browser. (GH-3842) (#3843)
Terry Jan Reedy [Sun, 1 Oct 2017 00:32:29 +0000 (20:32 -0400)]
[3.6] bpo-31460: Simplify the API of IDLE's Module Browser. (GH-3842) (#3843)

Passing a widget instead of an flist with a root widget opens the option of
creating a browser frame that is only part of a window. Passing a full file
name instead of pieces assumed to come from a .py file opens the possibility
of browsing python files that do not end in .py.
(cherry picked from commit d6bb65f)

7 years ago[3.6] bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. (GH-3839) (...
Terry Jan Reedy [Sat, 30 Sep 2017 22:45:53 +0000 (18:45 -0400)]
[3.6] bpo-31649: Make IDLE's _htest, _utest parameters keyword-only. (GH-3839) (#3841)

(cherry picked from commit bfebfd8)

7 years ago[3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)
Miss Islington (bot) [Sat, 30 Sep 2017 19:52:00 +0000 (12:52 -0700)]
[3.6] bpo-31627: Make test_mailbox be lenient to empty hostname. (GH-3821) (#3837)

(cherry picked from commit f4ea642cb60556231e714089a79d3c59c202661e)

7 years ago[3.6] bpo-31592: Fix an assertion failure in Python parser in case of a bad unicodeda...
Miss Islington (bot) [Sat, 30 Sep 2017 19:51:37 +0000 (12:51 -0700)]
[3.6] bpo-31592: Fix an assertion failure in Python parser in case of a bad unicodedata.normalize(). (GH-3767) (#3836)

(cherry picked from commit 7dc46d8cf5854d9f4ce3271b29c21aea4872e8ad)

7 years ago[3.6] bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()...
Miss Islington (bot) [Fri, 29 Sep 2017 22:07:01 +0000 (15:07 -0700)]
[3.6] bpo-31641: Allow arbitrary iterables in `concurrent.futures.as_completed()` (GH-3830) (#3831)

This was possible before.  GH-1560 introduced a regression after 3.6.2 got
released where only sequences were accepted now.  This commit addresses this
problem.
(cherry picked from commit 574562c5ddb2f0429aab9af762442e6f9a3f26ab)

7 years ago[3.6] bpo-31285: Remove splitlines identifier from Python/_warnings.c (GH-3803) ...
Miss Islington (bot) [Fri, 29 Sep 2017 19:26:45 +0000 (12:26 -0700)]
[3.6] bpo-31285: Remove splitlines identifier from Python/_warnings.c (GH-3803) (#3829)

(forgot to remove it in GH-3219)
(cherry picked from commit 8b4ff53c440dfcde40fbeb02c5e666c85190528f)

7 years ago[3.6] bpo-25351: avoid activate failure on strict shells (GH-3804) (#3820)
Miss Islington (bot) [Fri, 29 Sep 2017 12:34:43 +0000 (05:34 -0700)]
[3.6] bpo-25351: avoid activate failure on strict shells (GH-3804) (#3820)

(cherry picked from commit 90f1d989594f3340c5ffaa2cf9cef1876ac6bb89)

7 years agobpo-31621: Fix typo in Simple Statements documentation (GH-3809) (GH-3810)
Miss Islington (bot) [Thu, 28 Sep 2017 20:00:17 +0000 (13:00 -0700)]
bpo-31621: Fix typo in Simple Statements documentation (GH-3809) (GH-3810)

Replace "restriction" with "restrictions".
(cherry picked from commit 8d59aca4a953b097a9b02b0ecafef840e4ac5855)