Fix PyUnicode_AsWideCharString signature (#8522)
authorAndrey Andreyevich Bienkowski <hexagon-recursion@posteo.net>
Thu, 28 Apr 2022 01:22:03 +0000 (01:22 +0000)
committerGitHub <noreply@github.com>
Thu, 28 Apr 2022 01:22:03 +0000 (01:22 +0000)
Add proper exception specification to the `PyUnicode_AsWideCharString` signature.

src/api/python/cvc5.pxi

index 4a344316c87c969de3f3bb01c08033d02d149e68..0743bc2192699ea766ea2072a5f35a2c8cdf5ae2 100644 (file)
@@ -42,7 +42,7 @@ from cvc5types cimport RoundingMode as c_RoundingMode
 from cvc5types cimport UnknownExplanation as c_UnknownExplanation
 
 cdef extern from "Python.h":
-    wchar_t* PyUnicode_AsWideCharString(object, Py_ssize_t *)
+    wchar_t* PyUnicode_AsWideCharString(object, Py_ssize_t *) except NULL
     object PyUnicode_FromWideChar(const wchar_t*, Py_ssize_t)
     void PyMem_Free(void*)