Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5b99f0

Browse files
committed
Remove redundant includes of headers that are already included by Python.h.
1 parent 71c23d4 commit e5b99f0

22 files changed

Lines changed: 0 additions & 32 deletions

Modules/_datetimemodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
*/
44

55
#include "Python.h"
6-
#include "modsupport.h"
76
#include "structmember.h"
87

98
#include <time.h>

Modules/_lsprof.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#include "Python.h"
2-
#include "compile.h"
32
#include "frameobject.h"
43
#include "rotatingtree.h"
54

Modules/main.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
#include "Python.h"
44
#include "osdefs.h"
5-
#include "import.h"
65

76
#include <locale.h>
87

Modules/parsermodule.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@
3434
#include "grammar.h"
3535
#include "parsetok.h"
3636
/* ISTERMINAL() / ISNONTERMINAL() */
37-
#include "compile.h"
3837
#undef Yield
3938
#include "ast.h"
40-
#include "pyarena.h"
4139

4240
extern grammar _PyParser_Grammar; /* From graminit.c */
4341

Modules/signalmodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/* XXX Signals should be recorded per thread, now we have thread state. */
55

66
#include "Python.h"
7-
#include "intrcheck.h"
87

98
#ifdef MS_WINDOWS
109
#include <Windows.h>

Modules/symtablemodule.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#include "Python.h"
22

33
#include "code.h"
4-
#include "compile.h"
54
#include "Python-ast.h"
65
#include "symtable.h"
76

Objects/funcobject.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include "Python.h"
55
#include "code.h"
6-
#include "eval.h"
76
#include "structmember.h"
87

98
PyObject *

Objects/genobject.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
#include "Python.h"
44
#include "frameobject.h"
5-
#include "genobject.h"
6-
#include "ceval.h"
75
#include "structmember.h"
86
#include "opcode.h"
97

Objects/object.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/* Generic object operations; and implementation of None (NoObject) */
33

44
#include "Python.h"
5-
#include "sliceobject.h" /* For PyEllipsis_Type */
65
#include "frameobject.h"
76

87
#ifdef __cplusplus

Objects/unicodectype.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
*/
1010

1111
#include "Python.h"
12-
#include "unicodeobject.h"
1312

1413
#define ALPHA_MASK 0x01
1514
#define DECIMAL_MASK 0x02

0 commit comments

Comments
 (0)