Use PyUnicode for Python 3.
authorJelmer Vernooij <jelmer@jelmer.uk>
Fri, 4 Aug 2017 21:08:40 +0000 (21:08 +0000)
committerJelmer Vernooij <jelmer@jelmer.uk>
Fri, 4 Aug 2017 21:08:40 +0000 (21:08 +0000)
subvertpy/subr.c

index 76d70331471f48b376280ade11afdf12df670057..2a2af7b125b959461c682c40f865e3be930fda47 100644 (file)
@@ -36,7 +36,7 @@ static PyObject *py_uri_canonicalize(PyObject *self, PyObject *args)
 
     pool = Pool(NULL);
     uri = py_object_to_svn_uri(py_uri, pool);
-    ret = PyString_FromString(uri);
+    ret = PyUnicode_FromString(uri);
     apr_pool_destroy(pool);
 
     return ret;