diff options
author | Bram Moolenaar <Bram@vim.org> | 2012-09-21 13:46:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2012-09-21 13:46:06 +0200 |
commit | 770456589e5e53507fcd32013a190b520f4fc688 (patch) | |
tree | 1bacd8f17ef1a832cd781507aa469d67b2520573 /src/if_python.c | |
parent | 696c2116dc5e5403644d7f7dcaea49b83cf5a8f5 (diff) | |
download | vim-770456589e5e53507fcd32013a190b520f4fc688.zip |
updated for version 7.3.671
Problem: More Python code can be shared between Python 2 and 3.
Solution: Move code to if_py_both.h. (ZyX)
Diffstat (limited to 'src/if_python.c')
-rw-r--r-- | src/if_python.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/if_python.c b/src/if_python.c index a20aba0f3..3c72b260c 100644 --- a/src/if_python.c +++ b/src/if_python.c @@ -951,31 +951,6 @@ OutputGetattr(PyObject *self, char *name) return Py_FindMethod(OutputMethods, self, name); } - static int -OutputSetattr(PyObject *self, char *name, PyObject *val) -{ - if (val == NULL) - { - PyErr_SetString(PyExc_AttributeError, _("can't delete OutputObject attributes")); - return -1; - } - - if (strcmp(name, "softspace") == 0) - { - if (!PyInt_Check(val)) - { - PyErr_SetString(PyExc_TypeError, _("softspace must be an integer")); - return -1; - } - - ((OutputObject *)(self))->softspace = PyInt_AsLong(val); - return 0; - } - - PyErr_SetString(PyExc_AttributeError, _("invalid attribute")); - return -1; -} - /***************/ static int |