138
139
accum_len = accum_len + c_len-1
139
140
else: # new tag:value line
142
(tag, PyUnicode_DecodeUTF8(accum_value, accum_len-1,
143
(tag, PyUnicode_DecodeUTF8(accum_value, accum_len-1,
144
tag = _split_first_line_utf8(c_line, c_len, accum_value,
145
tag = _split_first_line_utf8(c_line, c_len, accum_value,
147
148
raise ValueError("invalid rio tag %r" % (tag,))
148
149
if tag is not None: # add last tag-value
150
151
(tag, PyUnicode_DecodeUTF8(accum_value, accum_len-1, "strict")))
151
152
return Stanza.from_pairs(pairs)
152
153
else: # didn't see any content