|
@@ -9,11 +9,11 @@ def in_tree(response, name, uclass, drv, depth, last_child):
|
|
lines = [x.strip() for x in response.splitlines()]
|
|
lines = [x.strip() for x in response.splitlines()]
|
|
leaf = ' ' * 4 * depth;
|
|
leaf = ' ' * 4 * depth;
|
|
if not last_child:
|
|
if not last_child:
|
|
- leaf = leaf + '\|'
|
|
|
|
|
|
+ leaf = leaf + r'\|'
|
|
else:
|
|
else:
|
|
leaf = leaf + '`'
|
|
leaf = leaf + '`'
|
|
leaf = leaf + '-- ' + name
|
|
leaf = leaf + '-- ' + name
|
|
- line = (' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$'
|
|
|
|
|
|
+ line = (r' *{:10.10} [0-9]* \[ [ +] \] {:20.20} {}$'
|
|
.format(uclass, drv, leaf))
|
|
.format(uclass, drv, leaf))
|
|
prog = re.compile(line)
|
|
prog = re.compile(line)
|
|
for l in lines:
|
|
for l in lines:
|