From 44fee02f6de40b71ac2cafae17c975518d924701 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sat, 18 Oct 2014 01:13:06 -0400 Subject: the get_string_* functions should return unicode strings the cells themselves are stored as utf8, no reason the returned string here shouldn't be --- vt100module.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'vt100module.c') diff --git a/vt100module.c b/vt100module.c index 9c44ae8..1eb8f37 100644 --- a/vt100module.c +++ b/vt100module.c @@ -76,11 +76,7 @@ static PyObject *py_vt100_get_string_formatted(PyObject *self, PyObject *args) vt100_screen_get_string_formatted(vt, &start, &end, &outstr, &outlen); -#if PY_MAJOR_VERSION == 3 - return Py_BuildValue("y#", outstr, outlen); -#else return Py_BuildValue("s#", outstr, outlen); -#endif } static PyObject *py_vt100_get_string_plaintext(PyObject *self, PyObject *args) @@ -96,11 +92,7 @@ static PyObject *py_vt100_get_string_plaintext(PyObject *self, PyObject *args) vt100_screen_get_string_plaintext(vt, &start, &end, &outstr, &outlen); -#if PY_MAJOR_VERSION == 3 - return Py_BuildValue("y#", outstr, outlen); -#else return Py_BuildValue("s#", outstr, outlen); -#endif } static PyObject *py_vt100_delete(PyObject *self, PyObject *args) -- cgit v1.2.3-54-g00ecf