summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorJesus Cea <jcea@jcea.es>2012-10-05 00:11:36 (GMT)
committerJesus Cea <jcea@jcea.es>2012-10-05 00:11:36 (GMT)
commit14c81aba509904959a86f14ccd180f714e6b753d (patch)
tree62c6d922cd4ae226c2e076b5d3ab81c7c5d24cb5 /Modules/timemodule.c
parentab70e2ab3264c444ac70a1c98e869b0de0b22c4a (diff)
downloadcpython-14c81aba509904959a86f14ccd180f714e6b753d.zip
cpython-14c81aba509904959a86f14ccd180f714e6b753d.tar.gz
cpython-14c81aba509904959a86f14ccd180f714e6b753d.tar.bz2
#16135: Removal of OS/2 support (Modules/*)
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index 3b1f075..8a81c8c 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -37,16 +37,6 @@
#endif /* MS_WINDOWS */
#endif /* !__WATCOMC__ || __QNX__ */
-#if defined(PYOS_OS2)
-#define INCL_DOS
-#define INCL_ERRORS
-#include <os2.h>
-#endif
-
-#if defined(PYCC_VACPP)
-#include <sys/time.h>
-#endif
-
#if defined(__APPLE__)
#include <mach/mach_time.h>
#endif
@@ -1284,19 +1274,11 @@ PyInit_timezone(PyObject *m) {
#if defined(HAVE_TZNAME) && !defined(__GLIBC__) && !defined(__CYGWIN__)
PyObject *otz0, *otz1;
tzset();
-#ifdef PYOS_OS2
- PyModule_AddIntConstant(m, "timezone", _timezone);
-#else /* !PYOS_OS2 */
PyModule_AddIntConstant(m, "timezone", timezone);
-#endif /* PYOS_OS2 */
#ifdef HAVE_ALTZONE
PyModule_AddIntConstant(m, "altzone", altzone);
#else
-#ifdef PYOS_OS2
- PyModule_AddIntConstant(m, "altzone", _timezone-3600);
-#else /* !PYOS_OS2 */
PyModule_AddIntConstant(m, "altzone", timezone-3600);
-#endif /* PYOS_OS2 */
#endif
PyModule_AddIntConstant(m, "daylight", daylight);
otz0 = PyUnicode_DecodeLocale(tzname[0], "surrogateescape");
@@ -1602,15 +1584,6 @@ floatsleep(double secs)
}
Py_END_ALLOW_THREADS
}
-#elif defined(PYOS_OS2)
- /* This Sleep *IS* Interruptable by Exceptions */
- Py_BEGIN_ALLOW_THREADS
- if (DosSleep(secs * 1000) != NO_ERROR) {
- Py_BLOCK_THREADS
- PyErr_SetFromErrno(PyExc_IOError);
- return -1;
- }
- Py_END_ALLOW_THREADS
#else
/* XXX Can't interrupt this sleep */
Py_BEGIN_ALLOW_THREADS