mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
Issue #14711: os.stat_float_times() has been deprecated.
This commit is contained in:
parent
e860404eb7
commit
034d0aa217
4 changed files with 16 additions and 4 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue