Python: embl parser: fixed a bug preventing taxids from being parsed

This commit is contained in:
Celine Mercier
2019-03-30 15:15:49 +01:00
parent 0847d618d6
commit c293cfabbb

View File

@ -10,6 +10,7 @@ Created on June 12th 2018
import logging
import re
from itertools import chain
from obitools3.utils cimport str2bytes
_featureMatcher = re.compile(b'^(FT| ) [^ ].+\n((FT| ) .+\n)+',re.M)
@ -65,6 +66,8 @@ def qualifierIterator(qualifiers):
value = t[1].replace(b'\n',b' ')
try:
value = eval(value)
if type(value) == str:
value = str2bytes(value)
except:
pass
t = (t[0],value)