utils.pyx 136 Bytes
Newer Older
Celine Mercier's avatar
test  
Celine Mercier committed
1 2 3 4 5
cdef bytes str2bytes(str string):
    return string.encode('ascii')

cdef str bytes2str(bytes string):
    return string.decode('ascii')