Commit 416c2d7b by Celine Mercier

Cython: made fasta formatter cleaner

parent 26fb149e
......@@ -6,7 +6,7 @@ from obitools3.dms.capi.obiview cimport NUC_SEQUENCE_COLUMN, \
QUALITY_COLUMN, \
COUNT_COLUMN
from obitools3.utils cimport str2bytes
from obitools3.utils cimport str2bytes, bytes2str_object
from obitools3.dms.column.column cimport Column_line
......@@ -63,7 +63,7 @@ cdef class HeaderFormat:
if type(value) == Column_line:
value = value.bytes()
else:
value = str2bytes(str(value)) # TODO ugly but how else?
value = str2bytes(str(bytes2str_object(value))) # genius programming
if value is not None:
lines.append(k + b"=" + value + b";")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment