Fix error message when fchdir is not available
diff -r fb6a92a07857 src/if_py_both.h
--- a/src/if_py_both.h Mon Jun 03 08:50:43 2013 +0700
+++ b/src/if_py_both.h Mon Jun 03 09:25:09 2013 +0700
@@ -5407,9 +5407,9 @@
if (PyObject_SetAttrString(os, "chdir", get_attr(m, "chdir")))
return -1;
- if ((py_fchdir = PyObject_GetAttrString(os, "fchdir")))
+ if (PyObject_HasAttrString(os, "fchdir"))
{
- ADD_OBJECT(m, "_fchdir", py_fchdir);
+ ADD_OBJECT(m, "_fchdir", PyObject_GetAttrString(os, "fchdir"));
if (PyObject_SetAttrString(os, "fchdir", get_attr(m, "fchdir")))
return -1;
}
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.