Skip to content

Commit f21e42d

Browse files
authored
Remove duplicate includes: Python/{bytecodes,ceval,optimizer_analysis}.c (#132622)
1 parent 5529213 commit f21e42d

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
lines changed

Python/bytecodes.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include "pycore_instruments.h"
1919
#include "pycore_interpolation.h" // _PyInterpolation_Build()
2020
#include "pycore_intrinsics.h"
21-
#include "pycore_long.h" // _PyLong_GetZero()
21+
#include "pycore_long.h" // _PyLong_ExactDealloc(), _PyLong_GetZero()
2222
#include "pycore_moduleobject.h" // PyModuleObject
2323
#include "pycore_object.h" // _PyObject_GC_TRACK()
2424
#include "pycore_opcode_metadata.h" // uop names
@@ -27,7 +27,6 @@
2727
#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
2828
#include "pycore_pystate.h" // _PyInterpreterState_GET()
2929
#include "pycore_range.h" // _PyRangeIterObject
30-
#include "pycore_long.h" // _PyLong_ExactDealloc()
3130
#include "pycore_setobject.h" // _PySet_NextEntry()
3231
#include "pycore_sliceobject.h" // _PyBuildSlice_ConsumeRefs
3332
#include "pycore_stackref.h"

Python/ceval.c

-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
#include "pycore_opcode_utils.h" // MAKE_FUNCTION_*
3131
#include "pycore_optimizer.h" // _PyUOpExecutor_Type
3232
#include "pycore_pyatomic_ft_wrappers.h" // FT_ATOMIC_*
33-
#include "pycore_pyerrors.h"
3433
#include "pycore_pyerrors.h" // _PyErr_GetRaisedException()
3534
#include "pycore_pystate.h" // _PyInterpreterState_GET()
3635
#include "pycore_range.h" // _PyRangeIterObject

Python/optimizer_analysis.c

-3
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@
1919
#include "pycore_opcode_utils.h"
2020
#include "pycore_pystate.h" // _PyInterpreterState_GET()
2121
#include "pycore_uop_metadata.h"
22-
#include "pycore_dict.h"
2322
#include "pycore_long.h"
2423
#include "pycore_interpframe.h" // _PyFrame_GetCode
2524
#include "pycore_optimizer.h"
2625
#include "pycore_object.h"
27-
#include "pycore_dict.h"
2826
#include "pycore_function.h"
29-
#include "pycore_uop_metadata.h"
3027
#include "pycore_uop_ids.h"
3128
#include "pycore_range.h"
3229

0 commit comments

Comments
 (0)