diff options
author | Georg Brandl <georg@python.org> | 2012-06-26 07:25:44 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-06-26 07:25:44 (GMT) |
commit | 969288e488f6d261fbfbab43dcbe6bb6afce28c0 (patch) | |
tree | 325fb75d539e7d55f0fb78e5684437c336097d64 /Modules/posixmodule.c | |
parent | a4b018f0cd9c1b84f4c6bf3b3dc893237c46df94 (diff) | |
download | cpython-969288e488f6d261fbfbab43dcbe6bb6afce28c0.zip cpython-969288e488f6d261fbfbab43dcbe6bb6afce28c0.tar.gz cpython-969288e488f6d261fbfbab43dcbe6bb6afce28c0.tar.bz2 |
Use ValueError, not RuntimeError for a utime flag combination illegal on some systems.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 8f2bbfb..82626a8 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4667,7 +4667,7 @@ posix_utime(PyObject *self, PyObject *args, PyObject *kwargs) #if !defined(HAVE_UTIMENSAT) if ((dir_fd != DEFAULT_DIR_FD) && (!follow_symlinks)) { - PyErr_SetString(PyExc_RuntimeError, + PyErr_SetString(PyExc_ValueError, "utime: cannot use dir_fd and follow_symlinks " "together on this platform"); goto exit; |