mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -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:
@@ -1195,7 +1195,10 @@ OutputGetattr(PyObject *self, char *name)
|
||||
return PyInt_FromLong(((OutputObject *)(self))->softspace);
|
||||
else if (strcmp(name, "__members__") == 0)
|
||||
return ObjectDir(NULL, OutputAttrs);
|
||||
|
||||
else if (strcmp(name, "errors") == 0)
|
||||
return PyString_FromString("strict");
|
||||
else if (strcmp(name, "encoding") == 0)
|
||||
return PyString_FromString(ENC_OPT);
|
||||
return Py_FindMethod(OutputMethods, self, name);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user