Changeset 927
- Timestamp:
- May 28, 2019, 11:44:36 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_python.c
r926 r927 351 351 PyObject *ptype, *pvalue, *ptraceback,*pValue,*pArgs; 352 352 PyErr_Fetch(&ptype, &pvalue, &ptraceback); 353 const char *pStrErrorMessage = PyString_AsString(pvalue); 353 #if PY_MAJOR_VERSION >= 3 354 const 355 #endif 356 char *pStrErrorMessage = PyString_AsString(pvalue); 354 357 char *tmp0=_("Python module %s cannot be loaded. Message: %s\n"); 355 358 … … 698 701 if(strncmp(PyString_AsString(key),"child",5)!=0){ 699 702 if(strncmp(PyString_AsString(key),"value",5)==0){ 700 const char *buffer=NULL; 703 #if PY_MAJOR_VERSION >= 3 704 const 705 #endif 706 char *buffer=NULL; 701 707 Py_ssize_t size; 702 708 #if PY_MAJOR_VERSION >= 3 … … 720 726 res = addToMapWithSize(res,PyString_AsString(key),buffer,size); 721 727 }else{ 722 const char* lkey=PyString_AsString(key); 723 const char* lvalue=PyString_AsString(value); 728 #if PY_MAJOR_VERSION >= 3 729 const 730 #endif 731 char* lkey=PyString_AsString(key); 732 #if PY_MAJOR_VERSION >= 3 733 const 734 #endif 735 char* lvalue=PyString_AsString(value); 724 736 if(res!=NULL){ 725 737 if(PyString_Size(value)>0)
Note: See TracChangeset
for help on using the changeset viewer.