utils.pyx 163 Bytes
Newer Older
1 2
#cython: language_level=3

Celine Mercier's avatar
test  
Celine Mercier committed
3 4 5 6 7
cdef bytes str2bytes(str string):
    return string.encode('ascii')

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