Changeset 24501
- Timestamp:
- 01/07/20 16:22:13 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/wrappers/python/io/FetchPythonData.cpp
r24500 r24501 1296 1296 void FetchData(char** pstring,PyObject* py_string){ 1297 1297 1298 const char* string=NULL;1299 1300 1298 /*extract internal string: */ 1301 1299 #if _PYTHON_MAJOR_ == 3 1302 string=PyUnicode_AsUTF8(py_string);1300 const char* string=PyUnicode_AsUTF8(py_string); 1303 1301 #else 1304 string=PyString_AsString(py_string);1302 const char* string=PyString_AsString(py_string); 1305 1303 #endif 1306 1304 /*copy string (note strlen does not include trailing NULL): */
Note:
See TracChangeset
for help on using the changeset viewer.