summaryrefslogtreecommitdiffstats
path: root/Modules/timemodule.c
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-02-22 19:41:37 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2010-02-22 19:41:37 (GMT)
commitdc8c2adad6af2e3c8cd120cb6498816dc1b5b2d2 (patch)
tree2fa22e1b2334f047c7b6cab6f5e87822cb2d3559 /Modules/timemodule.c
parent4e260c5636d5dac66d72b869bb21b2010e278fc9 (diff)
downloadcpython-dc8c2adad6af2e3c8cd120cb6498816dc1b5b2d2.zip
cpython-dc8c2adad6af2e3c8cd120cb6498816dc1b5b2d2.tar.gz
cpython-dc8c2adad6af2e3c8cd120cb6498816dc1b5b2d2.tar.bz2
Poor PLAN9, it isn't supported
Diffstat (limited to 'Modules/timemodule.c')
-rw-r--r--Modules/timemodule.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/Modules/timemodule.c b/Modules/timemodule.c
index c101819..0161ac0 100644
--- a/Modules/timemodule.c
+++ b/Modules/timemodule.c
@@ -1084,22 +1084,6 @@ floatsleep(double secs)
return -1;
}
Py_END_ALLOW_THREADS
-#elif defined(PLAN9)
- {
- double millisecs = secs * 1000.0;
- if (millisecs > (double)LONG_MAX) {
- PyErr_SetString(PyExc_OverflowError, "sleep length is too large");
- return -1;
- }
- /* This sleep *CAN BE* interrupted. */
- Py_BEGIN_ALLOW_THREADS
- if(sleep((long)millisecs) < 0){
- Py_BLOCK_THREADS
- PyErr_SetFromErrno(PyExc_IOError);
- return -1;
- }
- Py_END_ALLOW_THREADS
- }
#else
/* XXX Can't interrupt this sleep */
Py_BEGIN_ALLOW_THREADS