mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 7.4.1769
Problem: No "closed", "errors" and "encoding" attribute on Python output. Solution: Add attributes and more tests. (Roland Puntaier, closes #622)
This commit is contained in:
@@ -1100,6 +1100,10 @@ OutputGetattro(PyObject *self, PyObject *nameobj)
|
||||
|
||||
if (strcmp(name, "softspace") == 0)
|
||||
return PyLong_FromLong(((OutputObject *)(self))->softspace);
|
||||
else if (strcmp(name, "errors") == 0)
|
||||
return PyString_FromString("strict");
|
||||
else if (strcmp(name, "encoding") == 0)
|
||||
return PyString_FromString(ENC_OPT);
|
||||
|
||||
return PyObject_GenericGetAttr(self, nameobj);
|
||||
}
|
||||
|
Reference in New Issue
Block a user