Python: embl parser: fixed a bug preventing taxids from being parsed
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user