summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2017-02-15 23:34:30 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-02-15 23:34:30 (GMT)
commit72e81d00eee685cfe33aaddf2aa9feef2d07591f (patch)
tree5c18a8a4d4a7877971f7a39841148dfa84cfdd6a /Python
parent85064db281545d587992df61154e76439138319f (diff)
downloadcpython-72e81d00eee685cfe33aaddf2aa9feef2d07591f.zip
cpython-72e81d00eee685cfe33aaddf2aa9feef2d07591f.tar.gz
cpython-72e81d00eee685cfe33aaddf2aa9feef2d07591f.tar.bz2
bpo-29556: Remove unused #include <langinfo.h> (#98)
bltinmodule.c: Added in b744ba1 and no longer necessary since d64e8a7 posixmodule.c: Added in d1cd4d4 and no longer necessary since efb00c0 pythonrun.c: Added in 73d538b and no longer necessary since d600951 sysmodule.c: Added in 5467d4c and no longer necessary since a2c17c5
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c4
-rw-r--r--Python/pythonrun.c4
-rw-r--r--Python/sysmodule.c4
3 files changed, 0 insertions, 12 deletions
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c
index 763c2a2..63f1998 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -11,10 +11,6 @@
#include <ctype.h>
-#ifdef HAVE_LANGINFO_H
-#include <langinfo.h> /* CODESET */
-#endif
-
/* The default encoding used by the platform file system APIs
Can remain NULL for all platforms that don't have such a concept
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index 5bddbad..b7016d1 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -25,10 +25,6 @@
#include "malloc.h" /* for alloca */
#endif
-#ifdef HAVE_LANGINFO_H
-#include <langinfo.h>
-#endif
-
#ifdef MS_WINDOWS
#undef BYTE
#include "windows.h"
diff --git a/Python/sysmodule.c b/Python/sysmodule.c
index 81520ea..c317b43 100644
--- a/Python/sysmodule.c
+++ b/Python/sysmodule.c
@@ -33,10 +33,6 @@ extern void *PyWin_DLLhModule;
extern const char *PyWin_DLLVersionString;
#endif
-#ifdef HAVE_LANGINFO_H
-#include <langinfo.h>
-#endif
-
_Py_IDENTIFIER(_);
_Py_IDENTIFIER(__sizeof__);
_Py_IDENTIFIER(buffer);