Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
buffer committed Nov 21, 2024
1 parent 4a6c19c commit a3628c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ v8::Intercepted CPythonObject::NamedGetter(v8::Local<v8::Name> prop, const v8::P
}

if (::PyMapping_Check(obj.ptr()) &&
#if PY_VERSION_EX >= 0x030d0000
#if PY_VERSION_HEX >= 0x030d0000
::PyMapping_HasKeyStringWithError(obj.ptr(), *name) == 1
#else
::PyMapping_HasKeyString(obj.ptr(), *name)
Expand Down Expand Up @@ -429,7 +429,7 @@ v8::Intercepted CPythonObject::NamedQuery(v8::Local<v8::Name> prop, const v8::Pr
if (*name)
exists = PyGen_Check(obj.ptr()) || ::PyObject_HasAttrString(obj.ptr(), *name) ||
(::PyMapping_Check(obj.ptr()) &&
#if PY_VERSION_EX >= 0x030d0000
#if PY_VERSION_HEX >= 0x030d0000
::PyMapping_HasKeyStringWithError(obj.ptr(), *name) == 1
#else
::PyMapping_HasKeyString(obj.ptr(), *name)
Expand Down Expand Up @@ -457,7 +457,7 @@ v8::Intercepted CPythonObject::NamedDeleter(v8::Local<v8::Name> prop, const v8::

if (!::PyObject_HasAttrString(obj.ptr(), *name) &&
::PyMapping_Check(obj.ptr()) &&
#if PY_VERSION_EX >= 0x030d0000
#if PY_VERSION_HEX >= 0x030d0000
::PyMapping_HasKeyStringWithError(obj.ptr(), *name) == 1
#else
::PyMapping_HasKeyString(obj.ptr(), *name)
Expand Down Expand Up @@ -663,7 +663,7 @@ v8::Intercepted CPythonObject::IndexedQuery(uint32_t index, const v8::PropertyCa
snprintf(buf, sizeof(buf), "%d", index);

if (
#if PY_VERSION_EX >= 0x030d0000
#if PY_VERSION_HEX >= 0x030d0000
::PyMapping_HasKeyStringWithError(obj.ptr(), buf) == 1
#else
::PyMapping_HasKeyString(obj.ptr(), buf)
Expand Down

0 comments on commit a3628c5

Please sign in to comment.