mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-12-05 08:05:15 +00:00
- review fixes for python module.
git-svn-id: file:///svn/unbound/trunk@4969 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
1 parent
668c0627c0
commit
d21cb609a8
3 files changed
+7
-4
No files matched your search
@@ -139,7 +139,7 @@ log_py_err(void)
|
||||
modStringIO = PyImport_ImportModule("io");
|
||||
if (modStringIO==NULL) {
|
||||
log_err("pythonmod: cannot print exception, "
|
||||
"cannot ImportModule cStringIO or StringIO");
|
||||
"cannot ImportModule cStringIO or StringIO or io");
|
||||
goto cleanup;
|
||||
}
|
||||
modTB = PyImport_ImportModule("traceback");
|
||||
@@ -159,7 +159,7 @@ log_py_err(void)
|
||||
obStringIO = PyObject_CallObject(obFuncStringIO, NULL);
|
||||
if (obStringIO==NULL) {
|
||||
log_err("pythonmod: cannot print exception, "
|
||||
"cannot cStringIO.StringIO()");
|
||||
"cannot call cStringIO.StringIO()");
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
@@ -206,7 +206,8 @@ log_py_err(void)
|
||||
/* And it should be a string all ready to go - duplicate it. */
|
||||
if (!PyString_Check(obResult) && !PyUnicode_Check(obResult)) {
|
||||
log_err("pythonmod: cannot print exception, "
|
||||
"cStringIO.getvalue() result did not String_Check");
|
||||
"cStringIO.getvalue() result did not String_Check"
|
||||
" or Unicode_Check");
|
||||
goto cleanup;
|
||||
}
|
||||
if(PyString_Check(obResult)) {
|
||||
|
||||
Reference in new issue
Block a user