Skip to content

Commit 10fa14a

Browse files
reduce diff
1 parent fe3a6a1 commit 10fa14a

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Include/internal/pycore_code.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -672,8 +672,6 @@ PyAPI_FUNC(int) _PyCode_ReturnsOnlyNone(PyCodeObject *);
672672
* compare bytes and str which can raise a BytesWarning exception. */
673673
extern PyObject* _PyCode_ConstantKey(PyObject *obj);
674674

675-
#define NO_LOC_4 (128 | (PY_CODE_LOCATION_INFO_NONE << 3) | 3)
676-
677675

678676
#ifdef __cplusplus
679677
}

Python/specialize.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3196,6 +3196,12 @@ _Py_GatherStats_GetIter(_PyStackRef iterable)
31963196
* be lifted.
31973197
*/
31983198

3199+
#define NO_LOC_4 (128 | (PY_CODE_LOCATION_INFO_NONE << 3) | 3)
3200+
3201+
static const PyBytesObject no_location = {
3202+
PyVarObject_HEAD_INIT(&PyBytes_Type, 1)
3203+
.ob_sval = { NO_LOC_4 }
3204+
};
31993205

32003206
#ifdef Py_GIL_DISABLED
32013207
static _PyCodeArray init_cleanup_tlbc = {
@@ -3204,11 +3210,6 @@ static _PyCodeArray init_cleanup_tlbc = {
32043210
};
32053211
#endif
32063212

3207-
static const PyBytesObject no_location = {
3208-
PyVarObject_HEAD_INIT(&PyBytes_Type, 1)
3209-
.ob_sval = { NO_LOC_4 }
3210-
};
3211-
32123213
const struct _PyCode8 _Py_InitCleanup = {
32133214
_PyVarObject_HEAD_INIT(&PyCode_Type, 3),
32143215
.co_consts = (PyObject *)&_Py_SINGLETON(tuple_empty),

0 commit comments

Comments
 (0)