Merge tag 'xilinx-for-v2020.04' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[oweals/u-boot.git] / test / py / tests / test_bind.py
index ccf6d62ea8acf23e5fac4acda029288f75609a31..20c6050342a9061ffb1bd33437a008be427259dd 100644 (file)
@@ -9,11 +9,11 @@ def in_tree(response, name, uclass, drv, depth, last_child):
        lines = [x.strip() for x in response.splitlines()]
        leaf = ' ' * 4 * depth;
        if not last_child:
-               leaf = leaf + '\|'
+               leaf = leaf + r'\|'
        else:
                leaf = leaf + '`'
        leaf = leaf + '-- ' + name
-       line = (' *{:10.10}   [0-9]*  \[ [ +] \]   {:20.20}  {}$'
+       line = (r' *{:10.10}    [0-9]*  \[ [ +] \]   {:20.20}  {}$'
                .format(uclass, drv, leaf))
        prog = re.compile(line)
        for l in lines: