From 2205c003d7c86946c3829a65658b1c57b4e37302 Mon Sep 17 00:00:00 2001 From: Jessica Hair Date: Thu, 5 Dec 2019 15:04:51 -0500 Subject: [PATCH] Use unicode instead of string in variable names --- libarchive/_libarchive_wrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libarchive/_libarchive_wrap.c b/libarchive/_libarchive_wrap.c index d7aba11..644f7cb 100644 --- a/libarchive/_libarchive_wrap.c +++ b/libarchive/_libarchive_wrap.c @@ -739,7 +739,7 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { #define PyString_Size(str) PyBytes_Size(str) #define PyString_InternFromString(key) PyUnicode_InternFromString(key) #define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE -#define PyString_AS_STRING(x) PyUnicode_AS_STRING(x) +#define PyString_AS_STRING(x) PyUnicode_AS_UNICODE(x) #define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x) #endif