summaryrefslogtreecommitdiff
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2012-09-21 13:46:06 +0200
committerBram Moolenaar <Bram@vim.org>2012-09-21 13:46:06 +0200
commit770456589e5e53507fcd32013a190b520f4fc688 (patch)
tree1bacd8f17ef1a832cd781507aa469d67b2520573 /src/if_python.c
parent696c2116dc5e5403644d7f7dcaea49b83cf5a8f5 (diff)
downloadvim-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.c25
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