]> granicus.if.org Git - python/log
python
7 years agobpo-30947: Update libexpat from 2.2.1 to 2.2.3 (#3106)
Victor Stinner [Fri, 18 Aug 2017 21:43:54 +0000 (23:43 +0200)]
bpo-30947: Update libexpat from 2.2.1 to 2.2.3 (#3106)

* bpo-30947: Update libexpat from 2.2.1 to 2.2.3

* Add NEWS entry

* Add new loadlibrary.c

* expat_external.h: restore include "pyexpatns.h"

* PCbuild: add expat/loadlibrary.c

* Define XML_POOR_ENTROPY to compile expat

7 years agobpo-31234: fork_wait tests now join threads (#3139)
Victor Stinner [Fri, 18 Aug 2017 21:12:26 +0000 (23:12 +0200)]
bpo-31234: fork_wait tests now join threads (#3139)

fork_wait.py tests now joins threads, to not leak running threads in
the background.

7 years agobpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)
Stefan Krah [Fri, 18 Aug 2017 19:39:32 +0000 (21:39 +0200)]
bpo-30923: Disable warning that has been part of -Wextra since gcc-7.0. (#3142)

7 years agobpo-31109: Convert zipimport to use Argument Clinic (GH-2990)
Yaron de Leeuw [Fri, 18 Aug 2017 18:41:13 +0000 (14:41 -0400)]
bpo-31109: Convert zipimport to use Argument Clinic (GH-2990)

7 years agoFix a minor grammar issue in the logging cookbook (GH-3136)
Brett Cannon [Fri, 18 Aug 2017 17:00:31 +0000 (10:00 -0700)]
Fix a minor grammar issue in the logging cookbook (GH-3136)

7 years agobpo-31231: Fix pythoninfo in Travis config (#3134)
Victor Stinner [Fri, 18 Aug 2017 15:30:51 +0000 (17:30 +0200)]
bpo-31231: Fix pythoninfo in Travis config (#3134)

bpo-31231, bpo-30871: Replace "./python -m test.pythoninfo" with
"make pythoninfo", since macOS uses ./python.exe.

7 years agobpo-30121: Fix debug assert in subprocess on Windows (#1224)
Segev Finer [Fri, 18 Aug 2017 13:18:13 +0000 (16:18 +0300)]
bpo-30121: Fix debug assert in subprocess on Windows (#1224)

* bpo-30121: Fix debug assert in subprocess on Windows

This is caused by closing HANDLEs using os.close which is for CRT file
descriptors and not for HANDLEs.

* bpo-30121: Suppress debug assertion in test_subprocess when ran directly

7 years agobpo-30721: Add missing '?' to new error message (GH-3131)
Sanyam Khurana [Fri, 18 Aug 2017 12:18:14 +0000 (17:48 +0530)]
bpo-30721: Add missing '?' to new error message (GH-3131)

7 years agoIssue #30923: Revert flag that is not recognized by an obsolete gcc version. (#3132)
Stefan Krah [Fri, 18 Aug 2017 11:55:45 +0000 (13:55 +0200)]
Issue #30923: Revert flag that is not recognized by an obsolete gcc version. (#3132)

7 years agobpo-30721: Show correct syntax hint in Py3 when using Py2 redirection syntax (#2345)
Sanyam Khurana [Fri, 18 Aug 2017 10:37:36 +0000 (16:07 +0530)]
bpo-30721: Show correct syntax hint in Py3 when using Py2 redirection syntax (#2345)

7 years agobpo-30871: pythoninfo: more sys, os, time data (#3130)
Victor Stinner [Fri, 18 Aug 2017 10:08:47 +0000 (12:08 +0200)]
bpo-30871: pythoninfo: more sys, os, time data (#3130)

* bpo-30871: pythoninfo: more sys, os, time data

PythonInfo now converts types other than intger to string by default.

* fix typo

7 years agobpo-30871: Add "make pythoninfo" (#3120)
Victor Stinner [Fri, 18 Aug 2017 09:31:52 +0000 (11:31 +0200)]
bpo-30871: Add "make pythoninfo" (#3120)

7 years agoFix broken `Show Source` links on documentation pages (GH-3113)
Elmar Ritsch [Fri, 18 Aug 2017 03:23:51 +0000 (05:23 +0200)]
Fix broken `Show Source` links on documentation pages (GH-3113)

The `Show Source` was broken because of a change made in sphinx 1.5.1
In Sphinx 1.4.9, the sourcename was "index.txt".
In Sphinx 1.5.1+, it is now "index.rst.txt"

7 years agobpo-31183: `dis` now handles coroutines & async generators (GH-3077)
syncosmic [Fri, 18 Aug 2017 02:29:21 +0000 (19:29 -0700)]
bpo-31183: `dis` now handles coroutines & async generators (GH-3077)

Coroutines and async generators use a distinct attribute name for their
code objects, so this updates the `dis` module to correctly disassemble
objects with those attributes.

Due to the increase in the test module length, it also fixes some latent
defects in the tests related to how the displayed source line numbers
are extracted.

https://bugs.python.org/issue31230 is a follow-up issue suggesting we
may want to solve this a different way, by instead giving all these object
types a common `__code__` attribute, avoiding the need for special
casing in the `dis` module.

7 years agobpo-31001: IDLE: Add tests for configdialog highlight tab (#3123)
Cheryl Sabella [Fri, 18 Aug 2017 00:39:00 +0000 (20:39 -0400)]
bpo-31001: IDLE: Add tests for configdialog highlight tab (#3123)

7 years agobpo-30871: pythoninfo: add expat and _decimal (#3121)
Victor Stinner [Thu, 17 Aug 2017 20:13:11 +0000 (22:13 +0200)]
bpo-30871: pythoninfo: add expat and _decimal (#3121)

* bpo-30871: pythoninfo: add expat and _decimal

* Remove _decimal.__version__

The string is hardcoded, not really interesting.

7 years agoAdds nuget symbols package for daily builds. (#3122)
Steve Dower [Thu, 17 Aug 2017 17:24:18 +0000 (10:24 -0700)]
Adds nuget symbols package for daily builds. (#3122)

7 years agobpo-30871: Add test.pythoninfo (#3075)
Victor Stinner [Thu, 17 Aug 2017 14:40:51 +0000 (16:40 +0200)]
bpo-30871: Add test.pythoninfo (#3075)

* Add Lib/test/pythoninfo.py: script collecting various informations
  about Python to help debugging test failures.
* regrtest: remove sys.hash_info and sys.flags from header.
* Travis CI, Appveyor: run pythoninfo before tests

7 years agobpo-31221: patchcheck ignores external libraries (#3109)
Victor Stinner [Thu, 17 Aug 2017 14:29:15 +0000 (16:29 +0200)]
bpo-31221: patchcheck ignores external libraries (#3109)

Tools/scripts/patchcheck.py now ignores changes in directories which
are copies of external libraries:

* Modules/_ctypes/libffi_msvc/
* Modules/_ctypes/libffi_osx/
* Modules/_decimal/libmpdec/
* Modules/expat/
* Modules/zlib/

Drop also support for Mercurial, since CPython migrated to Git.

Exclude also libmpdec

patchcheck: exclude also libffi_osx and libffi_msvc

7 years agoUpdate the language selection in the docs language switch. (GH-3114)
Julien Palard [Thu, 17 Aug 2017 14:24:02 +0000 (16:24 +0200)]
Update the language selection in the docs language switch. (GH-3114)

Change the option for `Français` into `French` to be consistent with the other language selections that are already in English.

7 years agobpo-24700: Add a fast path for comparing array.array of equal type (#3009)
Adrian Wielgosik [Thu, 17 Aug 2017 12:46:06 +0000 (12:46 +0000)]
bpo-24700: Add a fast path for comparing array.array of equal type (#3009)

7 years agobpo-18966: non-daemonic threads created by a multiprocessing.Process should be joined...
Antoine Pitrou [Wed, 16 Aug 2017 18:53:28 +0000 (20:53 +0200)]
bpo-18966: non-daemonic threads created by a multiprocessing.Process should be joined on exit (#3111)

* bpo-18966: non-daemonic threads created by a multiprocessing.Process should be joined on exit

* Add NEWS blurb

7 years agobpo-31069, test_multiprocessing: Fix dangling process (#3103)
Victor Stinner [Wed, 16 Aug 2017 10:46:04 +0000 (12:46 +0200)]
bpo-31069, test_multiprocessing: Fix dangling process (#3103)

Fix a warning about dangling processes in test_rapid_restart() of
_test_multiprocessing: join the process.

7 years agobpo-30983: Revert changes which broke most buildbots (#3100)
Victor Stinner [Wed, 16 Aug 2017 09:02:05 +0000 (11:02 +0200)]
bpo-30983: Revert changes which broke most buildbots (#3100)

* Revert "Add Bruno Penteado to ACKS (#3091)"

This reverts commit f978405b3f092e4005b92ba1dbaab15f609b3bb0.

* Revert "bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)"

This reverts commit 2e0f4db114424a00354eab889ba8f7334a2ab8f0.

7 years agobpo-30928: Update idlelib/NEWS.txt to 2017-08-15. (#3098)
Terry Jan Reedy [Tue, 15 Aug 2017 23:15:04 +0000 (19:15 -0400)]
bpo-30928: Update idlelib/NEWS.txt to 2017-08-15. (#3098)

7 years agobpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096)
Cheryl Sabella [Tue, 15 Aug 2017 22:26:23 +0000 (18:26 -0400)]
bpo-31205: IDLE: Factor KeysPage class from ConfigDialog (#3096)

  The slightly modified tests continue to pass.  Patch by Cheryl Sabella.

7 years agoAdd Windows team as a codeowner for Windows-specific files (#3089)
Steve Dower [Tue, 15 Aug 2017 17:21:34 +0000 (10:21 -0700)]
Add Windows team as a codeowner for Windows-specific files (#3089)

7 years agofix grammr in error messages in overlapped.c (GH-3095)
Oren Milman [Tue, 15 Aug 2017 16:04:18 +0000 (19:04 +0300)]
fix grammr in error messages in overlapped.c (GH-3095)

7 years agobpo-30714: ALPN changes for OpenSSL 1.1.0f (#2305)
Christian Heimes [Tue, 15 Aug 2017 08:33:43 +0000 (10:33 +0200)]
bpo-30714: ALPN changes for OpenSSL 1.1.0f (#2305)

OpenSSL 1.1.0 to 1.1.0e aborted the handshake when server and client
could not agree on a protocol using ALPN. OpenSSL 1.1.0f changed that.
The most recent version now behaves like OpenSSL 1.0.2 again. The ALPN
callback can pretend to not been set.

See https://github.com/openssl/openssl/pull/3158 for more details

Signed-off-by: Christian Heimes <christian@python.org>
7 years agobpo-31002: IDLE: Add tests for configdialog keys tab (#2996)
Cheryl Sabella [Tue, 15 Aug 2017 01:21:43 +0000 (21:21 -0400)]
bpo-31002: IDLE: Add tests for configdialog keys tab (#2996)

Patch by Cheryl Sabella.

7 years agoAdd Bruno Penteado to ACKS (#3091)
Łukasz Langa [Mon, 14 Aug 2017 22:43:42 +0000 (15:43 -0700)]
Add Bruno Penteado to ACKS (#3091)

7 years agobpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)
Bruno "Polaco" Penteado [Mon, 14 Aug 2017 22:14:17 +0000 (23:14 +0100)]
bpo-30983: eval frame rename in pep 0523 broke gdb's python extension (#2803)

pep 0523 renames PyEval_EvalFrameEx to _PyEval_EvalFrameDefault while the gdb python extension only looks for PyEval_EvalFrameEx to understand if it is dealing with a frame.

Final effect is that attaching gdb to a python3.6 process doesnt resolve python objects. Eg. py-list and py-bt dont work properly.

This patch fixes that. Tested locally on python3.6

7 years agobpo-31191: Improve grammar in threading.Barrier docs (GH-3080)
Saurabh Chaturvedi [Mon, 14 Aug 2017 18:54:53 +0000 (00:24 +0530)]
bpo-31191: Improve grammar in threading.Barrier docs (GH-3080)

7 years agobpo-30824: Add mimetype for .json (#3048)
Nate Tangsurat [Mon, 14 Aug 2017 18:39:45 +0000 (13:39 -0500)]
bpo-30824: Add mimetype for .json (#3048)

7 years agobpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() (#3000...
Коренберг Марк [Mon, 14 Aug 2017 13:55:16 +0000 (18:55 +0500)]
bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() (#3000) (#3000)

7 years agobpo-5001, bpo-31169: Fix two uninformative asserts in multiprocessing/managers.py...
Allen W. Smith, Ph.D [Sat, 12 Aug 2017 15:37:09 +0000 (10:37 -0500)]
bpo-5001, bpo-31169: Fix two uninformative asserts in multiprocessing/managers.py (#3078)

* Make error message more informative

Replace assertions in error-reporting code with more-informative version that doesn't cause confusion over where and what the error is.

* Additional clarification + get travis to check

* Change from SystemError to TypeError

As suggested in PR comment by @pitrou, changing from SystemError; TypeError appears appropriate.

* NEWS file installation; ACKS addition (will do my best to justify it by additional work)

7 years agobpo-30747: Attempt to fix atomic load/store (#2383)
Pär Björklund [Sat, 12 Aug 2017 09:19:30 +0000 (11:19 +0200)]
bpo-30747: Attempt to fix atomic load/store (#2383)

_Py_atomic_* are currently not implemented as atomic operations
when building with MSVC. This patch attempts to implement parts
of the functionality required.

7 years agoFix typo in 3.7 What's New (GH-3069)
Daniel Himmelstein [Fri, 11 Aug 2017 01:45:12 +0000 (21:45 -0400)]
Fix typo in 3.7 What's New (GH-3069)

Remove unneeded word `to`.

7 years agobpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065)
Victor Stinner [Thu, 10 Aug 2017 23:23:22 +0000 (01:23 +0200)]
bpo-31008: Fix asyncio test_wait_for_handle on Windows (#3065)

7 years agobpo-26762: _test_multiprocessing reports dangling (#3064)
Victor Stinner [Thu, 10 Aug 2017 15:36:50 +0000 (17:36 +0200)]
bpo-26762: _test_multiprocessing reports dangling (#3064)

_test_multiprocessing now marks the test as ENV_CHANGED on dangling
process or thread.

7 years agoregrtest: count also env changed as failures in progress (#3061)
Victor Stinner [Thu, 10 Aug 2017 14:19:03 +0000 (16:19 +0200)]
regrtest: count also env changed as failures in progress (#3061)

7 years agoEnhance support.reap_children() (#3036)
Victor Stinner [Thu, 10 Aug 2017 14:01:47 +0000 (16:01 +0200)]
Enhance support.reap_children() (#3036)

* reap_children() now sets environment_altered to True to detect bugs
  using python3 -m test --fail-env-changed
* Replace bare "except:" with "except OSError:" in reap_children()
* Write an unit test for reap_children() using a timeout of 60
  seconds

7 years agobpo-31151: Add socketserver.ForkingMixIn.server_close() (#3057)
Victor Stinner [Thu, 10 Aug 2017 13:28:16 +0000 (15:28 +0200)]
bpo-31151: Add socketserver.ForkingMixIn.server_close() (#3057)

* Add socketserver.ForkingMixIn.server_close()

bpo-31151: socketserver.ForkingMixIn.server_close() now waits until
all child processes completed to prevent leaking zombie processes.

* Fix test on Windows which doesn't have ForkingMixIn

7 years agobpo-31160: test_tempfile: Fix reap_children() warning (#3056)
Victor Stinner [Thu, 10 Aug 2017 11:05:06 +0000 (13:05 +0200)]
bpo-31160: test_tempfile: Fix reap_children() warning (#3056)

TestRandomNameSequence.test_process_awareness() now calls
os.waitpid() to avoid leaking a zombie process.

7 years agobpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055)
Victor Stinner [Thu, 10 Aug 2017 10:37:39 +0000 (12:37 +0200)]
bpo-31173: Rewrite WSTOPSIG test of test_subprocess (#3055)

The current test_child_terminated_in_stopped_state() function test
creates a child process which calls ptrace(PTRACE_TRACEME, 0, 0) and
then crash (SIGSEGV). The problem is that calling os.waitpid() in the
parent process is not enough to close the process: the child process
remains alive and so the unit test leaks a child process in a
strange state. Closing the child process requires non-trivial code,
maybe platform specific.

Remove the functional test and replaces it with an unit test which
mocks os.waitpid() using a new _testcapi.W_STOPCODE() function to
test the WIFSTOPPED() path.

7 years agobpo-19903: IDLE: Calltips changed to use inspect.signature (#2822)
Louie Lu [Thu, 10 Aug 2017 00:58:13 +0000 (08:58 +0800)]
bpo-19903: IDLE: Calltips changed to use inspect.signature (#2822)

Idlelib.calltips.get_argspec now uses inspect.signature instead of inspect.getfullargspec, like help() does.  This improves the signature in the call tip in a few different cases, including builtins converted to provide a signature.  A message is added if the object is not callable, has an invalid signature, or if it has positional-only parameters.
Patch by Louie Lu.

7 years agobpo-31160: test_builtin: don't check waitpid() status (#3050)
Victor Stinner [Wed, 9 Aug 2017 21:08:22 +0000 (23:08 +0200)]
bpo-31160: test_builtin: don't check waitpid() status (#3050)

7 years agobpo-31160: Fix test_random for zombie process (#3045)
Victor Stinner [Wed, 9 Aug 2017 15:59:05 +0000 (17:59 +0200)]
bpo-31160: Fix test_random for zombie process (#3045)

TestModule.test_after_fork() now calls os.waitpid() to read the exit
status of the child process to avoid creating a zombie process.

7 years agobpo-31160: regrtest now reaps child processes (#3044)
Victor Stinner [Wed, 9 Aug 2017 15:44:33 +0000 (17:44 +0200)]
bpo-31160: regrtest now reaps child processes (#3044)

Add a post_test_cleanup() function which currently only calls
support.reap_children().

7 years agobpo-31160: Fix test_builtin for zombie process (#3043)
Victor Stinner [Wed, 9 Aug 2017 15:44:19 +0000 (17:44 +0200)]
bpo-31160: Fix test_builtin for zombie process (#3043)

PtyTests.run_child() now calls os.waitpid() to read the exit status
of the child process to avoid creating zombie process and leaking
processes in the background.

7 years agobpo-31159: fix language switch regex on unknown yet built languages. (#3039)
Julien Palard [Wed, 9 Aug 2017 15:01:15 +0000 (17:01 +0200)]
bpo-31159: fix language switch regex on unknown yet built languages. (#3039)

This fix a regex issue (a missing non-matching group around an 'or'
list) and the specific possible case where a translation is built but
not yet in known by the picker, but not explicitly listing possible
languages in the regex.

7 years agobpo-31072: Add filter to zipapp (#3021)
Jeffrey Rackauckas [Wed, 9 Aug 2017 13:37:17 +0000 (06:37 -0700)]
bpo-31072: Add filter to zipapp (#3021)

bpo-31072: Add a filter argument to zipapp.create_archive (GH-3021)

* Add an include_file argument to allow callers to decide which files to include
* Document the new argument

7 years agobpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033)
Serhiy Storchaka [Wed, 9 Aug 2017 11:29:12 +0000 (14:29 +0300)]
bpo-31070: Fix a race condition in importlib _get_module_lock(). (#3033)

7 years agobpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warning...
Ammar Askar [Wed, 9 Aug 2017 08:51:43 +0000 (04:51 -0400)]
bpo-31150: Wait for child process in test_forkinthread to avoid thread reaped warnings (#3032)

7 years agobpo-31149: Doc: Add Japanese to the language switcher. (#3028)
Julien Palard [Tue, 8 Aug 2017 21:26:46 +0000 (23:26 +0200)]
bpo-31149: Doc: Add Japanese to the language switcher. (#3028)

7 years agottk: fix LabeledScale and OptionMenu destroy() method (#3025)
Victor Stinner [Tue, 8 Aug 2017 17:41:21 +0000 (19:41 +0200)]
ttk: fix LabeledScale and OptionMenu destroy() method (#3025)

bpo-31135: Call the parent destroy() method even if the used
attribute doesn't exist.

The LabeledScale.destroy() method now also explicitly clears label
and scale attributes to help the garbage collector to destroy all
widgets.

7 years agobpo-31130: IDLE -- stop leaks in test_configdialog. (#3016)
Terry Jan Reedy [Mon, 7 Aug 2017 18:22:44 +0000 (14:22 -0400)]
bpo-31130: IDLE -- stop leaks in test_configdialog. (#3016)

Initial patch by Victor Stinner.

7 years agobpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)
Terry Jan Reedy [Mon, 7 Aug 2017 17:37:10 +0000 (13:37 -0400)]
bpo-29910: IDLE - revert `break`s that disabled calltip close. (#2997)

7 years agobpo-31045: Language switch (#2652)
Julien [Mon, 7 Aug 2017 08:27:21 +0000 (10:27 +0200)]
bpo-31045: Language switch (#2652)

* Doc: Indicate the language

* Renaming version_switcher to switchers (to add language_switcher).

* Adding language switch.

* Doc switchers: Enhance readability of regex parsing versions.

* Doc switchers: Desambiguate the need of a replace(/\/+$/g, '') by proper naming.

* Doc switchers: py3k can't reach js, it's redirected server-side by nginx.

* Doc switchers: Examples matching actual regexes.

* Doc switchers: Better fallback on unexisting translated version.

7 years agoadd myself to CODEOWNERS for subprocess. (#3005)
Gregory P. Smith [Sat, 5 Aug 2017 02:00:06 +0000 (20:00 -0600)]
add myself to CODEOWNERS for subprocess. (#3005)

7 years agoNotify the import-team on import-related PRs (GH-3002)
Brett Cannon [Fri, 4 Aug 2017 21:14:32 +0000 (14:14 -0700)]
Notify the import-team on import-related PRs (GH-3002)

7 years agoAdd author of the fix for #30841 to ACKS. (#3001)
Łukasz Langa [Fri, 4 Aug 2017 18:21:37 +0000 (11:21 -0700)]
Add author of the fix for #30841 to ACKS. (#3001)

7 years agoFix a shadow-compatible-local warning (#2180)
Yuan Chao Chou [Fri, 4 Aug 2017 17:53:12 +0000 (10:53 -0700)]
Fix a shadow-compatible-local warning (#2180)

Change the shadowing naming, 'value' (Python-ast.c:4652), to 'val'
to prevent the variables from being misused.

7 years agobpo-31107: Fix copyreg mangled slot names calculation. (#2989)
Shane Harvey [Fri, 4 Aug 2017 08:45:00 +0000 (01:45 -0700)]
bpo-31107: Fix copyreg mangled slot names calculation. (#2989)

7 years agobpo-29304: Simplify dict lookup functions (GH-2407)
INADA Naoki [Thu, 3 Aug 2017 14:45:15 +0000 (23:45 +0900)]
bpo-29304: Simplify dict lookup functions (GH-2407)

* remove hashpos parameter from lookdict functions.
* remove many duplicated code from lookdict functions.

7 years agoImprove grammar in asyncio documentation (GH-2993)
Mike DePalatis [Thu, 3 Aug 2017 14:20:42 +0000 (10:20 -0400)]
Improve grammar in asyncio documentation (GH-2993)

"not only is it .." is the correct form, as opposed to:
"not only it is ..."

7 years agobpo-30978: str.format_map() now passes key lookup exceptions through. (#2790)
Serhiy Storchaka [Thu, 3 Aug 2017 08:45:23 +0000 (11:45 +0300)]
bpo-30978: str.format_map() now passes key lookup exceptions through. (#2790)

Previously any exception was replaced with a KeyError exception.

7 years agobpo-31071: Avoid masking original TypeError in call with * unpacking (#2957)
Serhiy Storchaka [Thu, 3 Aug 2017 08:37:15 +0000 (11:37 +0300)]
bpo-31071: Avoid masking original TypeError in call with * unpacking (#2957)

when other arguments are passed.

7 years agoSpelling fixes (#2902)
Ville Skyttä [Thu, 3 Aug 2017 06:00:59 +0000 (09:00 +0300)]
Spelling fixes (#2902)

7 years agoAdd @bitdancer as codeowner of email related stuff. (GH-2987)
R. David Murray [Wed, 2 Aug 2017 22:50:50 +0000 (18:50 -0400)]
Add @bitdancer as codeowner of email related stuff. (GH-2987)

7 years agobpo-31080: Allowed logging.config.fileConfig() to accept both args and kwargs. (GH...
Preston Landers [Wed, 2 Aug 2017 20:44:28 +0000 (15:44 -0500)]
bpo-31080: Allowed logging.config.fileConfig() to accept both args and kwargs. (GH-2979)

7 years agobpo-31061: fix crash in asyncio speedup module (GH-2966)
Alexander Mohr [Wed, 2 Aug 2017 06:31:07 +0000 (23:31 -0700)]
bpo-31061: fix crash in asyncio speedup module (GH-2966)

7 years agoDocument Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980)
Łukasz Langa [Tue, 1 Aug 2017 23:47:50 +0000 (16:47 -0700)]
Document Path.is_mount(), update Misc/ACKS and Misc/NEWS (#2980)

7 years agoAdd @1st1 as co-owner of asyncio and genobject (#2978)
Yury Selivanov [Tue, 1 Aug 2017 22:41:33 +0000 (18:41 -0400)]
Add @1st1 as co-owner of asyncio and genobject (#2978)

7 years agobpo-30897: Add is_mount() to pathlib.Path (#2669)
Cooper Lees [Tue, 1 Aug 2017 22:35:45 +0000 (15:35 -0700)]
bpo-30897: Add is_mount() to pathlib.Path (#2669)

* Add in is_mount() call to pathlib.Path similiar to os.path.ismount(path)
* Add tests for is_mount()

7 years agoList myself as interested in all import-related pull requests (GH-2976)
Brett Cannon [Tue, 1 Aug 2017 21:51:17 +0000 (14:51 -0700)]
List myself as interested in all import-related pull requests (GH-2976)

7 years agobpo-31084: QueueHandler now formats messages correctly. (GH-2954)
favll [Tue, 1 Aug 2017 18:12:26 +0000 (20:12 +0200)]
bpo-31084: QueueHandler now formats messages correctly. (GH-2954)

7 years agobpo-31083: IDLE: Describe the Page classes in configdialog (#2965)
csabella [Tue, 1 Aug 2017 04:24:07 +0000 (00:24 -0400)]
bpo-31083: IDLE: Describe the Page classes in configdialog (#2965)

Add template as comment. Update existing classes to match outline.
Initial patch by Cheryl Sabella.

7 years agoRemove .mention-bot (GH-2923)
Mariatta [Tue, 1 Aug 2017 03:56:35 +0000 (20:56 -0700)]
Remove .mention-bot (GH-2923)

7 years agoCreate CODEOWNERS (GH-2924)
Mariatta [Tue, 1 Aug 2017 03:56:12 +0000 (20:56 -0700)]
Create CODEOWNERS (GH-2924)

Copied over info from .mention-bot

7 years agobpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). (#2963)
scoder [Mon, 31 Jul 2017 20:27:46 +0000 (22:27 +0200)]
bpo-31091: Remove dead code in PyErr_GivenExceptionMatches(). (#2963)

According to the comment, there was previously a call to PyObject_IsSubclass() involved which could fail, but since it was replaced with a call to PyType_IsSubtype(), it can no longer fail.

7 years agobpo-25910: Update LICENSE (GH-2873)
Mariatta [Mon, 31 Jul 2017 18:16:14 +0000 (11:16 -0700)]
bpo-25910: Update LICENSE (GH-2873)

Use the copy provided in https://bugs.python.org/issue25910#msg295200

7 years agoCloses issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)
Alexander Belopolsky [Mon, 31 Jul 2017 14:26:50 +0000 (10:26 -0400)]
Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets. (#2896)

* Closes issue bpo-5288: Allow tzinfo objects with sub-minute offsets.

* bpo-5288: Implemented %z formatting of sub-minute offsets.

* bpo-5288: Removed mentions of the whole minute limitation on TZ offsets.

* bpo-5288: Removed one more mention of the whole minute limitation.

Thanks @csabella!

* Fix a formatting error in the docs

* Addressed review comments.

Thanks, @haypo.

7 years agobpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx...
Zackery Spytz [Mon, 31 Jul 2017 14:24:37 +0000 (08:24 -0600)]
bpo-30640: Fix undefined behavior in _PyFunction_FastCallDict() and PyEval_EvalCodeEx() (#2919)

k + 1 was calculated with k = NULL.

7 years agobpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)
csabella [Mon, 31 Jul 2017 09:30:09 +0000 (05:30 -0400)]
bpo-25684: ttk.OptionMenu radiobuttons weren't unique (#2276)

between instances of OptionMenu.

7 years agobpo-31050: IDLE: Factor GenPage class from ConfigDialog (#2952)
csabella [Sun, 30 Jul 2017 22:39:17 +0000 (18:39 -0400)]
bpo-31050: IDLE: Factor GenPage class from ConfigDialog (#2952)

The slightly modified tests for the General tab continue to pass.
Patch by Cheryl Sabella.

7 years agoUpdated LoggerAdapter.isEnabledFor to take advantage of caching. (GH-2951)
Vinay Sajip [Sun, 30 Jul 2017 19:15:18 +0000 (20:15 +0100)]
Updated LoggerAdapter.isEnabledFor to take advantage of caching. (GH-2951)

7 years agobpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) (#2905)
csabella [Sun, 30 Jul 2017 17:34:25 +0000 (13:34 -0400)]
bpo-31004: IDLE: Factor out FontPage class from configdialog (step 1) (#2905)

The slightly modified tests continue to pass. The General test
broken by the switch to Notebook is fixed.
Patch mostly by Cheryl Sabella.

7 years agobpo-30928: Update IDLE News.txt. (#2948)
Terry Jan Reedy [Sun, 30 Jul 2017 10:25:22 +0000 (06:25 -0400)]
bpo-30928: Update IDLE News.txt. (#2948)

7 years agobpo-30522: Implemented a method to allow setting a logging.StreamHander's stream...
Vinay Sajip [Sun, 30 Jul 2017 09:41:45 +0000 (10:41 +0100)]
bpo-30522: Implemented a method to allow setting a logging.StreamHander's stream. (GH-2921)

7 years agobpo-30962: Added caching to Logger.isEnabledFor() (GH-2752)
Avram Lubkin [Sun, 30 Jul 2017 09:36:33 +0000 (05:36 -0400)]
bpo-30962: Added caching to Logger.isEnabledFor() (GH-2752)

7 years agobpo-30803: clarify truth value testing documentation (#2508)
Peter Thomassen [Sat, 29 Jul 2017 19:18:13 +0000 (21:18 +0200)]
bpo-30803: clarify truth value testing documentation (#2508)

Initial patch by Peter Thomassen.

7 years agobpo-31027: Fix test_listcomps failure when run directly (#2939)
Zackery Spytz [Sat, 29 Jul 2017 16:05:55 +0000 (10:05 -0600)]
bpo-31027: Fix test_listcomps failure when run directly (#2939)

Bug appears to be incomplete copy-paste-edit.

7 years agobpo-30781: IDLE - Use ttk Notebook in ConfigDialog (#2938)
Terry Jan Reedy [Sat, 29 Jul 2017 04:49:39 +0000 (00:49 -0400)]
bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (#2938)

The notebook looks a bit better.  It will work better with separate page classes. Traversal of widgets by Tab works better.  Switching tabs with keys becomes possible.  The font sample box works better at large font sizes.

One of the two simulated click tests no longer works.  This will be investigated while fixing a bug with the widget itself.

7 years agobpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (#2936)
Terry Jan Reedy [Fri, 28 Jul 2017 21:00:02 +0000 (17:00 -0400)]
bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (#2936)

Add clear method for tests.  Adjust tests to use global instance.
Remove unneeded ConfigDialog method.

7 years agobpo-30853: IDLE: Convert font and general vars to use VarTrace (#2914)
csabella [Fri, 28 Jul 2017 18:40:59 +0000 (14:40 -0400)]
bpo-30853: IDLE: Convert font and general vars to use VarTrace (#2914)

Instance tracers manages pairs consisting of a tk variable and a
callback function.  When tracing is turned on, setting the variable
calls the function.  Test coverage for the new class is 100%.

7 years agoFix trivial typo in multiprocessing documentation (GH-2930)
Yuval Langer [Fri, 28 Jul 2017 17:39:35 +0000 (20:39 +0300)]
Fix trivial typo in multiprocessing documentation (GH-2930)

7 years agobpo-31066: Fix test_httpservers.test_last_modified() (#2933)
Victor Stinner [Fri, 28 Jul 2017 16:15:02 +0000 (18:15 +0200)]
bpo-31066: Fix test_httpservers.test_last_modified() (#2933)

Write the temporary file on disk and then get its modification time.

7 years agobpo-31067: test_subprocess calls reap_children() (#2931)
Victor Stinner [Fri, 28 Jul 2017 16:00:22 +0000 (18:00 +0200)]
bpo-31067: test_subprocess calls reap_children() (#2931)

test_subprocess now also calls reap_children() in tearDown(), not
only on setUp().

7 years agobpo-30302: Update WhatsNew and documentation. (#2929)
Utkarsh Upadhyay [Fri, 28 Jul 2017 12:42:56 +0000 (14:42 +0200)]
bpo-30302: Update WhatsNew and documentation. (#2929)

* Update 'Porting to .37' section.

* Fix a minor example in the doc.