| Index: abp/filters/rpy.py | 
| =================================================================== | 
| --- a/abp/filters/rpy.py | 
| +++ b/abp/filters/rpy.py | 
| @@ -93,3 +93,31 @@ | 
|  | 
| """ | 
| return strings2utf8(tuple2dict(parse_line(text, mode))) | 
| + | 
| + | 
| +def lines2dicts(string_list, mode='body'): | 
| +    """Convert a list of filterlist strings to a dictionary. | 
| + | 
| +    All strings in the output dictionary will be UTF8 byte strings. This is | 
| +    necessary to prevent unicode encoding errors in rPython conversion layer. | 
| + | 
| +    Parameters | 
| +    ---------- | 
| +    string_list: iterable of str | 
| +        Each string in the list can be an empty line, include instruction, or | 
| +        filter. If the mode is 'start', headers and metadata can also be | 
| +        parsed. | 
| +    mode: str | 
| +        Parsing mode (see `abp.filters.parser.parse_line`). | 
| + | 
| +    Returns | 
| +    ------- | 
| +    list of dict | 
| +        With the parsing results and all strings converted to utf8 byte | 
| +        strings. | 
| + | 
| +    """ | 
| +    result = [] | 
| +    for string in string_list: | 
| +        result.append(line2dict(string, mode)) | 
| +    return result | 
|  |