# # # patch "contrib/ciabot_monotone_hookversion.py" # from [704a699a2412b8b56083e2bc4cc1d0b7792b8ce0] # to [a95f5d09abc43cf2bbc503602037c2700f46d391] # ============================================================ --- contrib/ciabot_monotone_hookversion.py 704a699a2412b8b56083e2bc4cc1d0b7792b8ce0 +++ contrib/ciabot_monotone_hookversion.py a95f5d09abc43cf2bbc503602037c2700f46d391 @@ -88,11 +88,12 @@ def parse_basic_io(raw): ''', re.VERBOSE) def parse_basic_io(raw): + parsed = [] key = None for m in TOKEN.finditer(raw): if m.lastgroup == 'key': if key: - yield key, values + parsed.append((key, values)) key = m.group('key') values = [] elif m.lastgroup == 'id': @@ -105,7 +106,8 @@ def parse_basic_io(raw): value = re.sub(r'\\\\', r'\\', value) values.append(value) if key: - yield key, values + parsed.append((key, values)) + return parsed def send_message(message, c): if c.delivery == "debug":