From 4e6e56536840a7080316bf036b4df799a6601049 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Mon, 20 Jun 2016 07:52:50 +0000 Subject: [PATCH] Fix English spelling and grammar errors --- Doc/tools/extensions/suspicious.py | 2 +- Misc/NEWS | 13 ++++++------- Modules/_tkinter.c | 4 ++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/Doc/tools/extensions/suspicious.py b/Doc/tools/extensions/suspicious.py index d3ed849157f..0a70e57d2b0 100644 --- a/Doc/tools/extensions/suspicious.py +++ b/Doc/tools/extensions/suspicious.py @@ -270,5 +270,5 @@ class SuspiciousVisitor(nodes.GenericNodeVisitor): # ignore comments -- too much false positives. # (although doing this could miss some errors; # there were two sections "commented-out" by mistake - # in the Python docs that would not be catched) + # in the Python docs that would not be caught) raise nodes.SkipNode diff --git a/Misc/NEWS b/Misc/NEWS index 5bf1f49aa6c..aa4cba93144 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -4566,7 +4566,7 @@ Core and Builtins - Issue #11450: Don't truncate hg version info in Py_GetBuildInfo() when there are many tags (e.g. when using mq). Patch by Nadeem Vawda. -- Issue #10451: memoryview objects could allow to mutate a readable buffer. +- Issue #10451: memoryview objects could allow mutating a readable buffer. Initial patch by Ross Lagerwall. - Issue #10892: Don't segfault when trying to delete __abstractmethods__ from a @@ -4635,7 +4635,7 @@ Library seeking a bit forward, writing, then seeking before the previous write but still within buffered data, and writing again). -- Issue #8498: In socket.accept(), allow to specify 0 as a backlog value in +- Issue #8498: In socket.accept(), allow specifying 0 as a backlog value in order to accept exactly one connection. Patch by Daniel Evers. - Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional. @@ -6096,8 +6096,8 @@ Extension Modules - Build the ossaudio extension on GNU/kFreeBSD. -- On Windows, ctypes does no longer check the stack before and after calling a - foreign function. This allows to use the unmodified libffi library. +- On Windows, ctypes no longer checks the stack before and after calling a + foreign function. This allows using the unmodified libffi library. Tests ----- @@ -9432,8 +9432,7 @@ Library - The mimetools module has been deprecated for removal in 3.0. - The ctypes.byref function now takes an optional second parameter - which allows to specify an offset in bytes for the constructed - pointer-like object. + which specifies an offset in bytes for the constructed pointer-like object. - Added the ast module. @@ -11058,7 +11057,7 @@ Library -- the failure just occurred later, with a more cumbersome exception. -- Patch #787789: allow to pass custom TestRunner instances to +- Patch #787789: allow passing custom TestRunner instances to unittest's main() function. - Patches #1550273, #1550272: fix a few bugs in unittest and add a diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c index 58456a444bb..2a652b06a22 100644 --- a/Modules/_tkinter.c +++ b/Modules/_tkinter.c @@ -52,8 +52,8 @@ Copyright (C) 1994 Steen Lumholt. (size_t)(size) <= UINT_MAX / (size_t)(elemsize)) /* Starting with Tcl 8.4, many APIs offer const-correctness. Unfortunately, - making _tkinter correct for this API means to break earlier - versions. USE_COMPAT_CONST allows to make _tkinter work with both 8.4 and + making _tkinter correct for this API means breaking earlier + versions. USE_COMPAT_CONST allows making _tkinter work with both 8.4 and earlier versions. Once Tcl releases before 8.4 don't need to be supported anymore, this should go. */ #define USE_COMPAT_CONST