Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ff5da054 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "pdl: Follow rename of padding width to size in python parser"

parents ada46638 9c8f05b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -67,8 +67,8 @@ def parse_fields(data):
                'field_id': m['field_id'],
            })
        elif name == '_padding_':
            m = re.match(rule(fr' \[ {g(integer, "width")} \]'), rest)
            fields.append({'kind': 'padding_field', 'width': int(m['width'], 0)})
            m = re.match(rule(fr' \[ {g(integer, "size")} \]'), rest)
            fields.append({'kind': 'padding_field', 'size': int(m['size'], 0)})
        elif name == '_size_':
            m = re.match(rule(fr' \( {g(identifier, "field_id")} \) : {g(integer, "width")}'), rest)
            fields.append({'kind': 'size_field', 'field_id': m['field_id'], 'width': int(m['width'], 0)})