prepare for PyCXX 7.0

This commit is contained in:
wmayer
2018-04-18 19:20:50 +02:00
parent c4aaef4033
commit 840c9e8b3c
36 changed files with 226 additions and 239 deletions

View File

@@ -110,7 +110,7 @@ private:
PyObject *pageObj;
char* name;
if (!PyArg_ParseTuple(args.ptr(), "Oet", &pageObj, "utf-8",&name)) {
throw Py::Exception("expected (Page,path");
throw Py::TypeError("expected (Page,path");
}
std::string filePath = std::string(name);
@@ -151,7 +151,7 @@ private:
PyObject *pageObj;
char* name;
if (!PyArg_ParseTuple(args.ptr(), "Oet", &pageObj, "utf-8",&name)) {
throw Py::Exception("expected (Page,path");
throw Py::TypeError("expected (Page,path");
}
std::string filePath = std::string(name);