Commit e04936e46f760af881c3b0c907da98600eb63809

Authored by Jürgen Knödlseder
1 parent 4b82d7c5

Replace PyBytes_AsString() by PyString_AsString() in GFilename typemap.

Showing 1 changed file with 1 additions and 1 deletions
pyext/typemap_GFilename.i
@@ -41,7 +41,7 @@ @@ -41,7 +41,7 @@
41 $1 = &temp; 41 $1 = &temp;
42 } 42 }
43 else if (PyUnicode_Check($input)) { 43 else if (PyUnicode_Check($input)) {
44 - temp = GFilename(std::string(PyBytes_AS_STRING(PyUnicode_AsEncodedString($input, "utf-8", "Error ~")))); 44 + temp = GFilename(std::string(PyString_AsString(PyUnicode_AsEncodedString($input, "utf-8", "Error ~"))));
45 $1 = &temp; 45 $1 = &temp;
46 } 46 }
47 else { 47 else {