8000 fix typos (#106247) · python/cpython@77ddc9a · GitHub
[go: up one dir, main page]

Skip to content

Commit 77ddc9a

Browse files
authored
fix typos (#106247)
Most typos are in comments, but two typos are in docstring.
1 parent cd58091 commit 77ddc9a

File tree

8 files changed

+12
-12
lines changed

8 files changed

+12
-12
lines changed

Objects/bytearrayobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ bytearray.maketrans
13771377
to: Py_buffer
13781378
/
13791379
1380-
Return a translation table useable for the bytes or bytearray translate method.
1380+
Return a translation table usable for the bytes or bytearray translate method.
13811381
13821382
The returned table will be one where each byte in frm is mapped to the byte at
13831383
the same position in to.
@@ -1387,7 +1387,7 @@ The bytes objects frm and to must be of the same length.
13871387

13881388
static PyObject *
13891389
bytearray_maketrans_impl(Py_buffer *frm, Py_buffer *to)
1390-
/*[clinic end generated code: output=1df267d99f56b15e input=5925a81d2fbbf151]*/
1390+
/*[clinic end generated code: output=1df267d99f56b15e input=b10de38c85950a63]*/
13911391
{
13921392
return _Py_bytes_maketrans(frm, to);
13931393
}

Objects/bytesobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2154,7 +2154,7 @@ bytes.maketrans
21542154
to: Py_buffer
21552155
/
21562156
2157-
Return a translation table useable for the bytes or bytearray translate method.
2157+
Return a translation table usable for the bytes or bytearray translate method.
21582158
21592159
The returned table will be one where each byte in frm is mapped to the byte at
21602160
the same position in to.
@@ -2164,7 +2164,7 @@ The bytes objects frm and to must be of the same length.
21642164

21652165
static PyObject *
21662166
bytes_maketrans_impl(Py_buffer *frm, Py_buffer *to)
2167-
/*[clinic end generated code: output=a36f6399d4b77f6f input=de7a8fc5632bb8f1]*/
2167+
/*[clinic end generated code: output=a36f6399d4b77f6f input=a3bd00d430a0979f]*/
21682168
{
21692169
return _Py_bytes_maketrans(frm, to);
21702170
}

Objects/clinic/bytearrayobject.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/clinic/bytesobject.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Objects/exceptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,7 +1464,7 @@ PyUnstable_Exc_PrepReraiseStar(PyObject *orig, PyObject *excs)
14641464
}
14651465

14661466
/* Make sure that orig has something as traceback, in the interpreter
1467-
* it always does becuase it's a raised exception.
1467+
* it always does because it's a raised exception.
14681468
*/
14691469
PyObject *tb = PyException_GetTraceback(orig);
14701470

Objects/object_layout.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ pointers are combined into a single tagged pointer:
4545

4646
If the object has no physical dictionary, then the ``dict_or_values``
4747
has its low bit set to one, and points to the values array.
48-
If the object has a physical dictioanry, then the ``dict_or_values``
48+
If the object has a physical dictionary, then the ``dict_or_values``
4949
has its low bit set to zero, and points to the dictionary.
5050

5151
The untagged form is chosen for the dictionary pointer, rather than

Python/pytime.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ py_get_system_clock(_PyTime_t *tp, _Py_clock_info_t *info, int raise_exc)
969969
}
970970

971971
#if defined(HAVE_CLOCK_GETTIME_RUNTIME) && defined(HAVE_CLOCK_GETTIME)
972-
} /* end of availibity block */
972+
} /* end of availability block */
973973
#endif
974974

975975
#endif /* !HAVE_CLOCK_GETTIME */

Python/sysmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ PySys_AddAuditHook(Py_AuditHookFunction hook, void *userData)
425425
e->userData = userData;
426426

427427
if (runtime->audit_hooks.mutex == NULL) {
428-
/* The runtime must not be initailized yet. */
428+
/* The runtime must not be initialized yet. */
429429
add_audit_hook_entry_unlocked(runtime, e);
430430
}
431431
else {

0 commit comments

Comments
 (0)
0