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