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

Skip to content

Commit 585a6ac

Browse files
committed
Merge typo fixes from 3.5
2 parents 6568714 + ec1aa5c commit 585a6ac

10 files changed

Lines changed: 12 additions & 12 deletions

File tree

Doc/library/collections.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,7 @@ anywhere a regular dictionary is used.
10181018

10191019
The :class:`OrderedDict` constructor and :meth:`update` method both accept
10201020
keyword arguments, but their order is lost because Python's function call
1021-
semantics pass-in keyword arguments using a regular unordered dictionary.
1021+
semantics pass in keyword arguments using a regular unordered dictionary.
10221022

10231023
.. versionchanged:: 3.5
10241024
The items, keys, and values :term:`views <dictionary view>`

Doc/library/test.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Running tests using the command-line interface
160160
The :mod:`test` package can be run as a script to drive Python's regression
161161
test suite, thanks to the :option:`-m` option: :program:`python -m test`. Under
162162
the hood, it uses :mod:`test.regrtest`; the call :program:`python -m
163-
test.regrtest` used in previous Python versions still works). Running the
163+
test.regrtest` used in previous Python versions still works. Running the
164164
script by itself automatically starts running all regression tests in the
165165
:mod:`test` package. It does this by finding all modules in the package whose
166166
name starts with ``test_``, importing them, and executing the function

Lib/http/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def guess_type(self, path):
831831
def _url_collapse_path(path):
832832
"""
833833
Given a URL path, remove extra '/'s and '.' path elements and collapse
834-
any '..' references and returns a colllapsed path.
834+
any '..' references and returns a collapsed path.
835835
836836
Implements something akin to RFC-2396 5.2 step 6 to parse relative paths.
837837
The utility of this function is limited to is_cgi method and helps

Misc/HISTORY

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6751,7 +6751,7 @@ Library
67516751

67526752
- Issue #7895: platform.mac_ver() no longer crashes after calling os.fork().
67536753

6754-
- Issue #9323: Fixed a bug in trace.py that resulted in loosing the name of the
6754+
- Issue #9323: Fixed a bug in trace.py that resulted in losing the name of the
67556755
script being traced. Patch by Eli Bendersky.
67566756

67576757
- Issue #9282: Fixed --listfuncs option of trace.py. Thanks Eli Bendersky for

Misc/NEWS

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ Build
421421
-----
422422

423423
- Issue #24915: Add LLVM support for PGO builds and use the test suite to
424-
generate the profile data. Initiial patch by Alecsandru Patrascu of Intel.
424+
generate the profile data. Initial patch by Alecsandru Patrascu of Intel.
425425

426426
- Issue #24910: Windows MSIs now have unique display names.
427427

@@ -1830,7 +1830,7 @@ Core and Builtins
18301830
type) can now be weakref'ed. Patch by Wei Wu.
18311831

18321832
- Issue #22077: Improve index error messages for bytearrays, bytes, lists,
1833-
and tuples by adding 'or slices'. Added ', not <typename' for bytearrays.
1833+
and tuples by adding 'or slices'. Added ', not <typename>' for bytearrays.
18341834
Original patch by Claudiu Popa.
18351835

18361836
- Issue #20179: Apply Argument Clinic to bytes and bytearray.
@@ -1854,7 +1854,7 @@ Core and Builtins
18541854
engine friendly) error messages when "exec" and "print" are used as
18551855
statements.
18561856

1857-
- Issue #21642: If the conditional if-else expression, allow an integer written
1857+
- Issue #21642: In the conditional if-else expression, allow an integer written
18581858
with no space between itself and the ``else`` keyword (e.g. ``True if 42else
18591859
False``) to be valid syntax.
18601860

Modules/_io/stringio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ _io_StringIO___init___impl(stringio *self, PyObject *value,
750750
/* If newline == "", we don't translate anything.
751751
If newline == "\n" or newline == None, we translate to "\n", which is
752752
a no-op.
753-
(for newline == None, TextIOWrapper translates to os.sepline, but it
753+
(for newline == None, TextIOWrapper translates to os.linesep, but it
754754
is pointless for StringIO)
755755
*/
756756
if (newline != NULL && newline[0] == '\r') {

Objects/methodobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ PyCFunction_Call(PyObject *func, PyObject *args, PyObject *kwds)
8989

9090
/* PyCFunction_Call() must not be called with an exception set,
9191
because it may clear it (directly or indirectly) and so the
92-
caller looses its exception */
92+
caller loses its exception */
9393
assert(!PyErr_Occurred());
9494

9595
flags = PyCFunction_GET_FLAGS(func) & ~(METH_CLASS | METH_STATIC | METH_COEXIST);

Objects/object.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ PyObject_Repr(PyObject *v)
475475
#ifdef Py_DEBUG
476476
/* PyObject_Repr() must not be called with an exception set,
477477
because it may clear it (directly or indirectly) and so the
478-
caller looses its exception */
478+
caller loses its exception */
479479
assert(!PyErr_Occurred());
480480
#endif
481481

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ type_call(PyTypeObject *type, PyObject *args, PyObject *kwds)
901901
#ifdef Py_DEBUG
902902
/* type_call() must not be called with an exception set,
903903
because it may clear it (directly or indirectly) and so the
904-
caller looses its exception */
904+
caller loses its exception */
905905
assert(!PyErr_Occurred());
906906
#endif
907907

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1214,7 +1214,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
12141214
#ifdef Py_DEBUG
12151215
/* PyEval_EvalFrameEx() must not be called with an exception set,
12161216
because it may clear it (directly or indirectly) and so the
1217-
caller looses its exception */
1217+
caller loses its exception */
12181218
assert(!PyErr_Occurred());
12191219
#endif
12201220

0 commit comments

Comments
 (0)