commit | acdc56d0d0ccea89d219d126c3ca1b9a28456bd5 | [log] [tgz] |
---|---|---|
author | Ned Deily <nad@acm.org> | Thu May 10 17:45:49 2012 -0700 |
committer | Ned Deily <nad@acm.org> | Thu May 10 17:45:49 2012 -0700 |
tree | dfd3900dbe714784a2f187bb6887255c9894d514 | |
parent | b79a01f9046ef0659eb9e68811ac0af4af7e16f4 [diff] |
Issue #14662: Prevent shutil failures on OS X when destination does not support chflag operations. (Patch by Hynek Schlawack)
diff --git a/Modules/errnomodule.c b/Modules/errnomodule.c index 68c3c49..87ebab0 100644 --- a/Modules/errnomodule.c +++ b/Modules/errnomodule.c
@@ -783,6 +783,9 @@ #ifdef WSAN inscode(d, ds, de, "WSAN", WSAN, "Error WSAN"); #endif +#ifdef ENOTSUP + inscode(d, ds, de, "ENOTSUP", ENOTSUP, "Operation not supported"); +#endif Py_DECREF(de); }