Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 02b75ab

Browse files
committed
Merge spelling and grammar fixes from 3.5
2 parents a31ddb3 + 69332c1 commit 02b75ab

14 files changed

Lines changed: 15 additions & 15 deletions

File tree

Doc/library/pdb.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ by the local file.
449449

450450
.. pdbcommand:: interact
451451

452-
Start an interative interpreter (using the :mod:`code` module) whose global
452+
Start an interactive interpreter (using the :mod:`code` module) whose global
453453
namespace contains all the (global and local) names found in the current
454454
scope.
455455

Include/unicodeobject.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2031,7 +2031,7 @@ PyAPI_FUNC(int) PyUnicode_CompareWithASCIIString(
20312031
/* Rich compare two strings and return one of the following:
20322032
20332033
- NULL in case an exception was raised
2034-
- Py_True or Py_False for successfully comparisons
2034+
- Py_True or Py_False for successful comparisons
20352035
- Py_NotImplemented in case the type combination is unknown
20362036
20372037
Note that Py_EQ and Py_NE comparisons can cause a UnicodeWarning in

Lib/test/test_cmd_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ def test_isolatedmode(self):
466466
rc, out, err = assert_python_ok('-I', '-c',
467467
'from sys import flags as f; '
468468
'print(f.no_user_site, f.ignore_environment, f.isolated)',
469-
# dummyvar to prevent extranous -E
469+
# dummyvar to prevent extraneous -E
470470
dummyvar="")
471471
self.assertEqual(out.strip(), b'1 1 1')
472472
with test.support.temp_cwd() as tmpdir:

Lib/test/test_docxmlrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def test_autolinking(self):
164164
@make_request_and_skipIf(sys.flags.optimize >= 2,
165165
"Docstrings are omitted with -O2 and above")
166166
def test_system_methods(self):
167-
"""Test the precense of three consecutive system.* methods.
167+
"""Test the presence of three consecutive system.* methods.
168168
169169
This also tests their use of parameter type recognition and the
170170
systems related to that process.

Lib/test/test_socket.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -708,7 +708,7 @@ def testSocketError(self):
708708
raise socket.gaierror
709709

710710
def testSendtoErrors(self):
711-
# Testing that sendto doesn't masks failures. See #10169.
711+
# Testing that sendto doesn't mask failures. See #10169.
712712
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
713713
self.addCleanup(s.close)
714714
s.bind(('', 0))

Lib/threading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ def _release(self):
641641
self._break()
642642
raise
643643

644-
# Wait in the barrier until we are relased. Raise an exception
644+
# Wait in the barrier until we are released. Raise an exception
645645
# if the barrier is reset or broken.
646646
def _wait(self, timeout):
647647
if not self._cond.wait_for(lambda : self._state != 0, timeout):

Lib/tkinter/ttk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def _format_elemcreate(etype, script=False, *args, **kw):
153153

154154
def _format_layoutlist(layout, indent=0, indent_size=2):
155155
"""Formats a layout list so we can pass the result to ttk::style
156-
layout and ttk::style settings. Note that the layout doesn't has to
156+
layout and ttk::style settings. Note that the layout doesn't have to
157157
be a list necessarily.
158158
159159
E.g.:

Misc/HISTORY

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1339,7 +1339,7 @@ Core and Builtins
13391339
Library
13401340
-------
13411341

1342-
- Issue #14768: os.path.expanduser('~/a') doesn't works correctly when HOME is '/'.
1342+
- Issue #14768: os.path.expanduser('~/a') doesn't work correctly when HOME is '/'.
13431343

13441344
- Issue #14371: Support bzip2 in zipfile module. Patch by Serhiy Storchaka.
13451345

@@ -23970,7 +23970,7 @@ in Python. An example completer, rlcompleter.py, is provided.
2397023970

2397123971
- The traceback.py module has a new function tb_lineno() by Marc-Andre
2397223972
Lemburg which extracts the line number from the linenumber table in
23973-
the code object. Apparently the traceback object doesn't contains the
23973+
the code object. Apparently the traceback object doesn't contain the
2397423974
right linenumber when -O is used. Rather than guessing whether -O is
2397523975
on or off, the module itself uses tb_lineno() unconditionally.
2397623976

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8101,7 +8101,7 @@ Library
81018101
on Windows and adds no value over and above python -m pydoc ...
81028102

81038103
- Issue #18155: The csv module now correctly handles csv files that use
8104-
a delimter character that has a special meaning in regexes, instead of
8104+
a delimiter character that has a special meaning in regexes, instead of
81058105
throwing an exception.
81068106

81078107
- Issue #14360: encode_quopri can now be successfully used as an encoder

Misc/coverity_model.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ typedef struct {} DIR;
3030
typedef struct {} RFILE;
3131

3232
/* Python/pythonrun.c
33-
* resourece leak false positive */
33+
* resource leak false positive */
3434

3535
void Py_FatalError(const char *msg) {
3636
__coverity_panic__();

0 commit comments

Comments
 (0)