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

Skip to content

Commit d2ad571

Browse files
committed
Issue #25523: Further a-to-an corrections new in 3.5
1 parent 2eb819f commit d2ad571

8 files changed

Lines changed: 10 additions & 10 deletions

File tree

Doc/library/argparse.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ allow_abbrev
530530
^^^^^^^^^^^^
531531

532532
Normally, when you pass an argument list to the
533-
:meth:`~ArgumentParser.parse_args` method of a :class:`ArgumentParser`,
533+
:meth:`~ArgumentParser.parse_args` method of an :class:`ArgumentParser`,
534534
it :ref:`recognizes abbreviations <prefix-matching>` of long options.
535535

536536
This feature can be disabled by setting ``allow_abbrev`` to ``False``::

Doc/reference/datamodel.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2358,7 +2358,7 @@ An *asynchronous iterable* is able to call asynchronous code in its
23582358
``__aiter__`` implementation, and an *asynchronous iterator* can call
23592359
asynchronous code in its ``__anext__`` method.
23602360

2361-
Asynchronous iterators can be used in a :keyword:`async for` statement.
2361+
Asynchronous iterators can be used in an :keyword:`async for` statement.
23622362

23632363
.. method:: object.__aiter__(self)
23642364

@@ -2393,7 +2393,7 @@ Asynchronous Context Managers
23932393
An *asynchronous context manager* is a *context manager* that is able to
23942394
suspend execution in its ``__aenter__`` and ``__aexit__`` methods.
23952395

2396-
Asynchronous context managers can be used in a :keyword:`async with` statement.
2396+
Asynchronous context managers can be used in an :keyword:`async with` statement.
23972397

23982398
.. method:: object.__aenter__(self)
23992399

Doc/whatsnew/3.5.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ not make an additional system call::
465465
PEP 475: Retry system calls failing with EINTR
466466
----------------------------------------------
467467

468-
A :py:data:`errno.EINTR` error code is returned whenever a system call, that
468+
An :py:data:`errno.EINTR` error code is returned whenever a system call, that
469469
is waiting for I/O, is interrupted by a signal. Previously, Python would
470470
raise :exc:`InterruptedError` in such case. This meant that, when writing a
471471
Python application, the developer had two choices:

Lib/concurrent/futures/process.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ def submit(self, fn, *args, **kwargs):
456456
submit.__doc__ = _base.Executor.submit.__doc__
457457

458458
def map(self, fn, *iterables, timeout=None, chunksize=1):
459-
"""Returns a iterator equivalent to map(fn, iter).
459+
"""Returns an iterator equivalent to map(fn, iter).
460460
461461
Args:
462462
fn: A callable that will take as many arguments as there are

Lib/signal.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def _int_to_enum(value, enum_klass):
3434

3535
def _enum_to_int(value):
3636
"""Convert an IntEnum member to a numeric value.
37-
If it's not a IntEnum member return the value itself.
37+
If it's not an IntEnum member return the value itself.
3838
"""
3939
try:
4040
return int(value)

Lib/unittest/test/test_discovery.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,12 +255,12 @@ def restore_isdir():
255255
self.addCleanup(sys.path.remove, abspath('/foo'))
256256

257257
# Test data: we expect the following:
258-
# a listdir to find our package, and a isfile and isdir check on it.
258+
# a listdir to find our package, and isfile and isdir checks on it.
259259
# a module-from-name call to turn that into a module
260260
# followed by load_tests.
261261
# then our load_tests will call discover() which is messy
262262
# but that finally chains into find_tests again for the child dir -
263-
# which is why we don't have a infinite loop.
263+
# which is why we don't have an infinite loop.
264264
# We expect to see:
265265
# the module load tests for both package and plain module called,
266266
# and the plain module result nested by the package module load_tests

Misc/NEWS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1990,7 +1990,7 @@ Library
19901990
- Issue #23132: Improve performance and introspection support of comparison
19911991
methods created by functool.total_ordering.
19921992

1993-
- Issue #19776: Add a expanduser() method on Path objects.
1993+
- Issue #19776: Add an expanduser() method on Path objects.
19941994

19951995
- Issue #23112: Fix SimpleHTTPServer to correctly carry the query string and
19961996
fragment when it redirects to add a trailing slash.

Modules/_collectionsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -629,7 +629,7 @@ volume rotations should take care not to penalize the common case.
629629
630630
Conceptually, a rotate by one is equivalent to a pop on one side and an
631631
append on the other. However, a pop/append pair is unnecessarily slow
632-
because it requires a incref/decref pair for an object located randomly
632+
because it requires an incref/decref pair for an object located randomly
633633
in memory. It is better to just move the object pointer from one block
634634
to the next without changing the reference count.
635635

0 commit comments

Comments
 (0)