summaryrefslogtreecommitdiffstats
path: root/src/if_python.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2013-06-23 13:11:18 +0200
committerBram Moolenaar <Bram@vim.org>2013-06-23 13:11:18 +0200
commit808c2bc8bf435917b792e172a22dc5f8c0e7066a (patch)
tree84a7b5846ce850af47f3bf8358818d46470e97d4 /src/if_python.c
parent389a1793f40b149ed8553fb75e7ee40bc684d8c5 (diff)
updated for version 7.3.1228v7.3.1228
Problem: Python: various inconsistencies and problems. Solution: StringToLine now supports both bytes() and unicode() objects. Make function names consistant. Fix memory leak fixed in StringToLine. (ZyX)
Diffstat (limited to 'src/if_python.c')
-rw-r--r--src/if_python.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/if_python.c b/src/if_python.c
index 4a7c9d2589..ed51119912 100644
--- a/src/if_python.c
+++ b/src/if_python.c
@@ -68,12 +68,9 @@
#undef main /* Defined in python.h - aargh */
#undef HAVE_FCNTL_H /* Clash with os_win32.h */
-#define PyBytes_FromString PyString_FromString
-#define PyBytes_Check PyString_Check
-
-/* No-op conversion functions, use with care! */
-#define PyString_AsBytes(obj) (obj)
-#define PyString_FreeBytes(obj)
+#define PyBytes_FromString PyString_FromString
+#define PyBytes_Check PyString_Check
+#define PyBytes_AsStringAndSize PyString_AsStringAndSize
#if !defined(FEAT_PYTHON) && defined(PROTO)
/* Use this to be able to generate prototypes without python being used. */