Decode C bytestring to ordinary string.
(bytestring)
| 22 | return len(inspect.signature(func).parameters) |
| 23 | |
| 24 | def decode_string(bytestring): |
| 25 | """Decode C bytestring to ordinary string.""" |
| 26 | return bytestring.decode('utf-8') |
| 27 | else: |
| 28 | from itertools import izip as zip_ |
| 29 | string_type = basestring |
no outgoing calls
no test coverage detected