diff options
author | Jesse Luehrs <doy@tozt.net> | 2014-10-18 01:13:06 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2014-10-18 01:13:06 -0400 |
commit | 44fee02f6de40b71ac2cafae17c975518d924701 (patch) | |
tree | 9ea60edc070f6e150e28252f38a2ee6da4177f4a /vt100module.c | |
parent | 81e65a452423e1cde8e0ff835d1314abc60a0b46 (diff) | |
download | libvt100-python-44fee02f6de40b71ac2cafae17c975518d924701.tar.gz libvt100-python-44fee02f6de40b71ac2cafae17c975518d924701.zip |
the get_string_* functions should return unicode strings
the cells themselves are stored as utf8, no reason the returned string
here shouldn't be
Diffstat (limited to 'vt100module.c')
-rw-r--r-- | vt100module.c | 8 |
1 files changed, 0 insertions, 8 deletions
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) |