try to fix paste usage in python 3

This commit is contained in:
roberto@quantal64
2012-07-19 07:41:00 +02:00
parent bde43ee7b2
commit 2de9b9d5c7
+2 -2
View File
@@ -654,7 +654,7 @@ PyObject *uwsgi_paste_loader(void *arg1) {
PyErr_Print();
exit(UWSGI_FAILED_APP_CODE);
}
PyTuple_SetItem(paste_logger_arg, 0, PyString_FromString(paste+7));
PyTuple_SetItem(paste_logger_arg, 0, UWSGI_PYFROMSTRING(paste+7));
if (python_call(paste_logger_fileConfig, paste_logger_arg, 0, NULL)) {
PyErr_Print();
}
@@ -686,7 +686,7 @@ PyObject *uwsgi_paste_loader(void *arg1) {
exit(UWSGI_FAILED_APP_CODE);
}
if (PyTuple_SetItem(paste_arg, 0, PyString_FromString(paste))) {
if (PyTuple_SetItem(paste_arg, 0, UWSGI_PYFROMSTRING(paste))) {
PyErr_Print();
exit(UWSGI_FAILED_APP_CODE);
}