summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2012-06-04 23:22:15 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2012-06-04 23:22:15 (GMT)
commit034d0aa2171688c40cee1a723ddcdb85bbce31e8 (patch)
tree6523794112aefabf7d198ab5f1e915dbf9e01568 /Modules/posixmodule.c
parente860404eb78c2f6fcb05477bdb691e81009ee28d (diff)
downloadcpython-034d0aa2171688c40cee1a723ddcdb85bbce31e8.zip
cpython-034d0aa2171688c40cee1a723ddcdb85bbce31e8.tar.gz
cpython-034d0aa2171688c40cee1a723ddcdb85bbce31e8.tar.bz2
Issue #14711: os.stat_float_times() has been deprecated.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 8b8fc8f..094108a 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -1721,6 +1721,10 @@ stat_float_times(PyObject* self, PyObject *args)
int newval = -1;
if (!PyArg_ParseTuple(args, "|i:stat_float_times", &newval))
return NULL;
+ if (PyErr_WarnEx(PyExc_DeprecationWarning,
+ "stat_float_times() is deprecated",
+ 1))
+ return NULL;
if (newval == -1)
/* Return old value */
return PyBool_FromLong(_stat_float_times);
@@ -3605,7 +3609,7 @@ typedef struct {
PyObject *args;
PyObject *kwargs;
- /* input/output */
+ /* input/output */
PyObject **path;
/* output only */
@@ -3655,7 +3659,7 @@ typedef struct {
timet[1] = ua.mtime_s
-/*
+/*
* utime_read_time_arguments() processes arguments for the utime
* family of functions.
*/