summaryrefslogtreecommitdiffstats
path: root/src/if_py_both.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-04-21 20:00:56 +0200
committerBram Moolenaar <Bram@vim.org>2016-04-21 20:00:56 +0200
commit6d4431e7b675ba7a0194c0b8eb84b7d92e4e7953 (patch)
treeff1a1467afecfc2a5a630e20cf3b0756834519f3 /src/if_py_both.h
parentd106e5ba7f10f0d2a14eaefe5d78405044416cb9 (diff)
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/if_py_both.h b/src/if_py_both.h
index de3e8680b5..a0385f9a5c 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}
};