Convert char* C strings returned from proton-c into python unicode
(string)
| 186 | |
| 187 | |
| 188 | def utf82string(string): |
| 189 | """Convert char* C strings returned from proton-c into python unicode""" |
| 190 | if string == ffi.NULL: |
| 191 | return None |
| 192 | return ffi.string(string).decode('utf8') |
| 193 | |
| 194 | |
| 195 | def bytes2py(b): |
no test coverage detected