Skip to content

Commit 0fa7fec

Browse files
progress
1 parent be0fe0b commit 0fa7fec

File tree

13 files changed

+18
-18
lines changed

13 files changed

+18
-18
lines changed

Modules/Setup.stdlib.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
#
8686
# Since the compilation of the built-in cryptographic modules depends
8787
# on whether we are building on WASI or not, rules will be explicitly
88-
# written. In the future, it should be preferrable to be able to setup
88+
# written. In the future, it should be preferable to be able to setup
8989
# the relevant bits here instead of in Makefile.pre.in or configure.ac.
9090

9191
# Hash functions can be disabled with --without-builtin-hashlib-hashes.

Modules/_functoolsmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
503503
assert(i == pto_nkwds);
504504
Py_XDECREF(pto_kw_merged);
505505

506-
/* Resize Stack if the removing overallocation saves some noticable memory
506+
/* Resize Stack if the removing overallocation saves some noticeable memory
507507
* NOTE: This whole block can be removed without breaking anything */
508508
Py_ssize_t noveralloc = n_merges + nkwds;
509509
if (stack != small_stack && noveralloc > 6 && noveralloc > init_stack_size / 10) {

Modules/hmacmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ find_hash_info(hmacmodule_state *state, PyObject *hash_info_ref)
649649
{
650650
const py_hmac_hinfo *info = NULL;
651651
int rc = find_hash_info_impl(state, hash_info_ref, &info);
652-
// The code below could be simplfied with only 'rc == 0' case,
652+
// The code below could be simplified with only 'rc == 0' case,
653653
// but we are deliberately verbose to ease future improvements.
654654
if (rc < 0) {
655655
return NULL;

Modules/posixmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5830,7 +5830,7 @@ os_nice_impl(PyObject *module, int increment)
58305830

58315831
/* There are two flavours of 'nice': one that returns the new
58325832
priority (as required by almost all standards out there) and the
5833-
Linux/FreeBSD one, which returns '0' on success and advices
5833+
Linux/FreeBSD one, which returns '0' on success and advises
58345834
the use of getpriority() to get the new priority.
58355835
58365836
If we are of the nice family that returns the new priority, we

Objects/codeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2012,7 +2012,7 @@ _PyCode_CheckNoExternalState(PyCodeObject *co, _PyCode_var_counts_t *counts,
20122012
errmsg = "globals not supported";
20132013
}
20142014
// Otherwise we don't check counts.unbound.globals.numunknown since we can't
2015-
// distinguish beween globals and builtins here.
2015+
// distinguish between globals and builtins here.
20162016

20172017
if (errmsg != NULL) {
20182018
if (p_errmsg != NULL) {
@@ -2123,7 +2123,7 @@ code_returns_only_none(PyCodeObject *co)
21232123
for (int i = 0; i < len; i += _PyInstruction_GetLength(co, i)) {
21242124
_Py_CODEUNIT inst = _Py_GetBaseCodeUnit(co, i);
21252125
if (IS_RETURN_OPCODE(inst.op.code)) {
2126-
// We alraedy know it isn't returning None.
2126+
// We already know it isn't returning None.
21272127
return 0;
21282128
}
21292129
}

Objects/typeobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4880,7 +4880,7 @@ type_new_impl(type_new_ctx *ctx)
48804880

48814881
assert(_PyType_CheckConsistency(type));
48824882
#if defined(Py_GIL_DISABLED) && defined(Py_DEBUG) && SIZEOF_VOID_P > 4
4883-
// After this point, other threads can potentally use this type.
4883+
// After this point, other threads can potentially use this type.
48844884
((PyObject*)type)->ob_flags |= _Py_TYPE_REVEALED_FLAG;
48854885
#endif
48864886

@@ -5597,7 +5597,7 @@ PyType_FromMetaclass(
55975597

55985598
assert(_PyType_CheckConsistency(type));
55995599
#if defined(Py_GIL_DISABLED) && defined(Py_DEBUG) && SIZEOF_VOID_P > 4
5600-
// After this point, other threads can potentally use this type.
5600+
// After this point, other threads can potentially use this type.
56015601
((PyObject*)type)->ob_flags |= _Py_TYPE_REVEALED_FLAG;
56025602
#endif
56035603

Objects/unicodeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14289,7 +14289,7 @@ unicode_getnewargs(PyObject *v, PyObject *Py_UNUSED(ignored))
1428914289
}
1429014290

1429114291
/*
14292-
This function searchs the longest common leading whitespace
14292+
This function searches the longest common leading whitespace
1429314293
of all lines in the [src, end).
1429414294
It returns the length of the common leading whitespace and sets `output` to
1429514295
point to the beginning of the common leading whitespace if length > 0.

PCbuild/pyproject.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<!--
128128
We need the overridden OutDir (PropertyGroup Label="Globals"),
129129
and want to be able to override some ClCompile parameters,
130-
so this must not be included erlier.
130+
so this must not be included earlier.
131131
-->
132132
<Import Project="pyproject-clangcl.props" Condition="$(PlatformToolset) == 'ClangCL' and $(__PyprojectClangCl_Props_Imported) != 'true'" />
133133

Parser/lexer/lexer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ set_ftstring_expr(struct tok_state* tok, struct token *token, char c) {
137137

138138
// Handle quotes
139139
if (ch == '"' || ch == '\'') {
140-
// The following if/else block works becase there is an off number
140+
// The following if/else block works because there is an off number
141141
// of quotes in STRING tokens and the lexer only ever reaches this
142142
// function with valid STRING tokens.
143143
// For example: """hello"""

Python/crossinterp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -772,7 +772,7 @@ _PyPickle_GetXIData(PyThreadState *tstate, PyObject *obj, _PyXIData_t *xidata)
772772
return -1;
773773
}
774774

775-
// If we had an "unwrapper" mechnanism, we could call
775+
// If we had an "unwrapper" mechanism, we could call
776776
// _PyObject_GetXIData() on the bytes object directly and add
777777
// a simple unwrapper to call pickle.loads() on the bytes.
778778
size_t size = sizeof(struct _shared_pickle_data);
@@ -3176,7 +3176,7 @@ _PyXI_InitTypes(PyInterpreterState *interp)
31763176
"failed to initialize the cross-interpreter exception types");
31773177
}
31783178
// We would initialize heap types here too but that leads to ref leaks.
3179-
// Instead, we intialize them in _PyXI_Init().
3179+
// Instead, we initialize them in _PyXI_Init().
31803180
return _PyStatus_OK();
31813181
}
31823182

0 commit comments

Comments
 (0)