Skip to content

Commit d1beb24

Browse files
bpo-46486: Fixed misspelled name DesciptorClassification
1 parent 270a091 commit d1beb24

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Python/specialize.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -587,10 +587,10 @@ typedef enum {
587587
ABSENT, /* Attribute is not present on the class */
588588
DUNDER_CLASS, /* __class__ attribute */
589589
GETSET_OVERRIDDEN /* __getattribute__ or __setattr__ has been overridden */
590-
} DesciptorClassification;
590+
} DescriptorClassification;
591591

592592

593-
static DesciptorClassification
593+
static DescriptorClassification
594594
analyze_descriptor(PyTypeObject *type, PyObject *name, PyObject **descr, int store)
595595
{
596596
if (store) {
@@ -651,7 +651,7 @@ analyze_descriptor(PyTypeObject *type, PyObject *name, PyObject **descr, int sto
651651
static int
652652
specialize_dict_access(
653653
PyObject *owner, _Py_CODEUNIT *instr, PyTypeObject *type,
654-
DesciptorClassification kind, PyObject *name,
654+
DescriptorClassification kind, PyObject *name,
655655
_PyAdaptiveEntry *cache0, _PyAttrCache *cache1,
656656
int base_op, int values_op, int hint_op)
657657
{
@@ -718,7 +718,7 @@ _Py_Specialize_LoadAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, Sp
718718
}
719719
}
720720
PyObject *descr;
721-
DesciptorClassification kind = analyze_descriptor(type, name, &descr, 0);
721+
DescriptorClassification kind = analyze_descriptor(type, name, &descr, 0);
722722
switch(kind) {
723723
case OVERRIDING:
724724
SPECIALIZATION_FAIL(LOAD_ATTR, SPEC_FAIL_OVERRIDING_DESCRIPTOR);
@@ -807,7 +807,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, S
807807
goto fail;
808808
}
809809
PyObject *descr;
810-
DesciptorClassification kind = analyze_descriptor(type, name, &descr, 1);
810+
DescriptorClassification kind = analyze_descriptor(type, name, &descr, 1);
811811
switch(kind) {
812812
case OVERRIDING:
813813
SPECIALIZATION_FAIL(STORE_ATTR, SPEC_FAIL_OVERRIDING_DESCRIPTOR);
@@ -881,7 +881,7 @@ _Py_Specialize_StoreAttr(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name, S
881881

882882
#ifdef Py_STATS
883883
static int
884-
load_method_fail_kind(DesciptorClassification kind)
884+
load_method_fail_kind(DescriptorClassification kind)
885885
{
886886
switch (kind) {
887887
case OVERRIDING:
@@ -921,7 +921,7 @@ specialize_class_load_method(PyObject *owner, _Py_CODEUNIT *instr, PyObject *nam
921921
{
922922

923923
PyObject *descr = NULL;
924-
DesciptorClassification kind = 0;
924+
DescriptorClassification kind = 0;
925925
kind = analyze_descriptor((PyTypeObject *)owner, name, &descr, 0);
926926
switch (kind) {
927927
case METHOD:
@@ -969,7 +969,7 @@ _Py_Specialize_LoadMethod(PyObject *owner, _Py_CODEUNIT *instr, PyObject *name,
969969
}
970970

971971
PyObject *descr = NULL;
972-
DesciptorClassification kind = 0;
972+
DescriptorClassification kind = 0;
973973
kind = analyze_descriptor(owner_cls, name, &descr, 0);
974974
assert(descr != NULL || kind == ABSENT || kind == GETSET_OVERRIDDEN);
975975
if (kind != METHOD) {

0 commit comments

Comments
 (0)