diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-21 20:00:56 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-21 20:00:56 +0200 |
commit | 6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953 (patch) | |
tree | ff1a1467afecfc2a5a630e20cf3b0756834519f3 /src/if_py_both.h | |
parent | d106e5ba7f10f0d2a14eaefe5d78405044416cb9 (diff) | |
download | vim-git-6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953.tar.gz |
patch 7.4.1769v7.4.1769
Problem: No "closed", "errors" and "encoding" attribute on Python output.
Solution: Add attributes and more tests. (Roland Puntaier, closes #622)
Diffstat (limited to 'src/if_py_both.h')
-rw-r--r-- | src/if_py_both.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h index de3e8680b..a0385f9a5 100644 --- a/src/if_py_both.h +++ b/src/if_py_both.h @@ -503,6 +503,7 @@ static struct PyMethodDef OutputMethods[] = { {"readable", (PyCFunction)AlwaysFalse, METH_NOARGS, ""}, {"seekable", (PyCFunction)AlwaysFalse, METH_NOARGS, ""}, {"writable", (PyCFunction)AlwaysTrue, METH_NOARGS, ""}, + {"closed", (PyCFunction)AlwaysFalse, METH_NOARGS, ""}, {"__dir__", (PyCFunction)OutputDir, METH_NOARGS, ""}, { NULL, NULL, 0, NULL} }; |