PyString_AsString is permissive and accepts unicode strings.
Replace it with PyUnicode_AsString when the argument is known to be a str.
Showing
Please
register
or
sign in
to comment
Replace it with PyUnicode_AsString when the argument is known to be a str.