File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed
Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -712,7 +712,7 @@ Glossary
712712 On Unix, it is the encoding of the LC_CTYPE locale. It can be set with
713713 ``locale.setlocale(locale.LC_CTYPE, new_locale) ``.
714714
715- On Windows, it is is the ANSI code page (ex: ``cp1252 ``).
715+ On Windows, it is the ANSI code page (ex: ``cp1252 ``).
716716
717717 ``locale.getpreferredencoding(False) `` can be used to get the locale
718718 encoding.
Original file line number Diff line number Diff line change @@ -597,8 +597,8 @@ Utilites and Decorators
597597
598598 A :keyword: `class ` decorator specifically for enumerations. It replaces the
599599 :meth: `__repr__ ` method with one that shows *module_name *.*member_name*. It
600- also injects the members, and their aliases, into the the global namespace
601- they were defined in.
600+ also injects the members, and their aliases, into the global namespace they
601+ were defined in.
602602
603603.. versionadded :: 3.10
604604
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ The two following opening hooks are provided by this module:
205205 modules. If the filename extension is not ``'.gz' `` or ``'.bz2' ``, the file is
206206 opened normally (ie, using :func: `open ` without any decompression).
207207
208- The *encoding * and *errors * values are passed to to :class: `io.TextIOWrapper `
208+ The *encoding * and *errors * values are passed to :class: `io.TextIOWrapper `
209209 for compressed files and open for normal files.
210210
211211 Usage example: ``fi = fileinput.FileInput(openhook=fileinput.hook_compressed, encoding="utf-8") ``
Original file line number Diff line number Diff line change @@ -278,8 +278,8 @@ Standard names are defined for the following types:
278278
279279 .. attribute :: __spec__
280280
281- A record of the the module's import-system-related state. Expected to be
282- an instance of :class: `importlib.machinery.ModuleSpec `.
281+ A record of the module's import-system-related state. Expected to be an
282+ instance of :class: `importlib.machinery.ModuleSpec `.
283283
284284 .. versionadded :: 3.4
285285
Original file line number Diff line number Diff line change @@ -328,8 +328,8 @@ the *new_callable* argument to :func:`patch`.
328328
329329 .. method :: assert_called_once_with(*args, **kwargs)
330330
331- Assert that the mock was called exactly once and that that call was
332- with the specified arguments.
331+ Assert that the mock was called exactly once and that call was with the
332+ specified arguments.
333333
334334 >>> mock = Mock(return_value = None )
335335 >>> mock(' foo' , bar = ' baz' )
Original file line number Diff line number Diff line change @@ -1567,7 +1567,7 @@ Deprecated
15671567 Python 3.12 . Use :meth:`pathlib.Path.hardlink_to` instead.
15681568 (Contributed by Barney Gale in :issue:`39950 ` .)
15691569
1570- * `` cgi.log()`` is deprecated and slated for for removal in Python 3.12 .
1570+ * `` cgi.log()`` is deprecated and slated for removal in Python 3.12 .
15711571 (Contributed by Inada Naoki in :issue:`41139 ` .)
15721572
15731573
You can’t perform that action at this time.
0 commit comments