Changeset 411 for trunk/zoo-project
- Timestamp:
- Apr 9, 2013, 1:20:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_python.c
r392 r411 585 585 }else{ 586 586 if(res!=NULL){ 587 #if PY_MAJOR_VERSION >= 3 588 addToMap(res,_PyUnicode_AsString(key),_PyUnicode_AsString(value)); 589 #else 590 addToMap(res,PyString_AsString(key),PyString_AsString(value)); 587 if(PyString_Size(value)>0) 588 #if PY_MAJOR_VERSION >= 3 589 addToMap(res,_PyUnicode_AsString(key),_PyUnicode_AsString(value)); 590 #else 591 addToMap(res,PyString_AsString(key),PyString_AsString(value)); 591 592 #endif 592 593 } 593 594 else{ 594 res= 595 #if PY_MAJOR_VERSION >= 3 596 createMap(_PyUnicode_AsString(key),_PyUnicode_AsString(value)); 597 #else 598 createMap(PyString_AsString(key),PyString_AsString(value)); 595 if(PyString_Size(value)>0) 596 res= 597 #if PY_MAJOR_VERSION >= 3 598 createMap(_PyUnicode_AsString(key),_PyUnicode_AsString(value)); 599 #else 600 createMap(PyString_AsString(key),PyString_AsString(value)); 599 601 #endif 600 602 }
Note: See TracChangeset
for help on using the changeset viewer.