summaryrefslogtreecommitdiff
path: root/Modules/_tkinter.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-01-20 21:29:31 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-01-20 21:29:31 +0200
commitee56cf6250eb8a384eee408224abc9ababad1282 (patch)
tree7eed1ea90cec82a7a638f7f2e381a942b02555e5 /Modules/_tkinter.c
parent4224d21bb8266db7dd385f94de9597776ee624fa (diff)
downloadcpython-ee56cf6250eb8a384eee408224abc9ababad1282.tar.gz
Issue #20315: Removed support for backward compatibility with early 2.x versions.
Diffstat (limited to 'Modules/_tkinter.c')
-rw-r--r--Modules/_tkinter.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/Modules/_tkinter.c b/Modules/_tkinter.c
index ecad541b95..6bf0b69164 100644
--- a/Modules/_tkinter.c
+++ b/Modules/_tkinter.c
@@ -33,20 +33,6 @@ Copyright (C) 1994 Steen Lumholt.
#include <windows.h>
#endif
-/* Allow using this code in Python 2.[12] */
-#ifndef PyDoc_STRVAR
-#define PyDoc_STRVAR(name,str) static char name[] = str
-#endif
-
-#ifndef PyMODINIT_FUNC
-#define PyMODINIT_FUNC void
-#endif
-
-#ifndef PyBool_Check
-#define PyBool_Check(o) 0
-#define PyBool_FromLong PyLong_FromLong
-#endif
-
#define CHECK_SIZE(size, elemsize) \
((size_t)(size) <= Py_MAX((size_t)INT_MAX, UINT_MAX / (size_t)(elemsize)))