Header parser: identifiers ending with ';' are now handled

This commit is contained in:
Celine Mercier
2017-11-24 17:59:52 +01:00
parent 9e3ac477eb
commit d21f4a6f90

View File

@ -65,6 +65,8 @@ cpdef tuple parseHeader(str header):
m=header[1:-1].split(maxsplit=1) m=header[1:-1].split(maxsplit=1)
ident=m[0] ident=m[0]
if ident[-1] == ';':
ident = ident[:-1]
if len(m)==1: if len(m)==1:
tags={} tags={}