summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorLarry Hastings <larry@hastings.org>2012-05-03 07:30:07 (GMT)
committerLarry Hastings <larry@hastings.org>2012-05-03 07:30:07 (GMT)
commit76ad59b7e826691e0eb19f04cb647e07cdbde76a (patch)
tree3c775b67065ab0424b23367462d324648add4810 /Python
parent3a7f7977f1ad3e5afe79254eef5057c0288613db (diff)
downloadcpython-76ad59b7e826691e0eb19f04cb647e07cdbde76a.zip
cpython-76ad59b7e826691e0eb19f04cb647e07cdbde76a.tar.gz
cpython-76ad59b7e826691e0eb19f04cb647e07cdbde76a.tar.bz2
Issue #14127: Add ns= parameter to utime, futimes, and lutimes.
Removed futimens as it is now redundant. Changed shutil.copystat to use st_atime_ns and st_mtime_ns from os.stat and ns= parameter to utime--it once again preserves exact metadata on Linux!
Diffstat (limited to 'Python')
-rw-r--r--Python/pytime.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pytime.c b/Python/pytime.c
index 0ffe799..eb5685b 100644
--- a/Python/pytime.c
+++ b/Python/pytime.c
@@ -123,7 +123,7 @@ error_time_t_overflow(void)
"timestamp out of range for platform time_t");
}
-static time_t
+time_t
_PyLong_AsTime_t(PyObject *obj)
{
#if defined(HAVE_LONG_LONG) && SIZEOF_TIME_T == SIZEOF_LONG_LONG