File tree 3 files changed +8
-0
lines changed 3 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -213,6 +213,8 @@ extensions.
213
213
214
214
:mod: `timing `
215
215
--- Measure time intervals to high resolution (use :func: `time.clock ` instead).
216
+
217
+ .. warning :: The :mod:`timing` module has been removed in Python 3.0.
216
218
217
219
218
220
SGI-specific Extension modules
Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ Extension Modules
26
26
Library
27
27
-------
28
28
29
+ - The timing module has been deprecated for removal in Python 3.0.
30
+
29
31
- The sv module has been deprecated for removal in Python 3.0.
30
32
31
33
- The multifile module has been deprecated as per PEP 4.
Original file line number Diff line number Diff line change @@ -54,5 +54,9 @@ static PyMethodDef timing_methods[] = {
54
54
55
55
PyMODINIT_FUNC inittiming (void )
56
56
{
57
+ if (PyErr_WarnPy3k ("the timing module has been removed in "
58
+ "Python 3.0; use time.clock() instead" , 2 ) < 0 )
59
+ return ;
60
+
57
61
(void )Py_InitModule ("timing" , timing_methods );
58
62
}
You can’t perform that action at this time.
0 commit comments