3
3
# Copyright (C) 2005 Canonical Ltd
6
6
formatted as a Python data structure.
8
8
This can be useful in tests that need to recreate directory
19
19
# a lame reimplementation of pformat that splits multi-line
20
20
# strings into concatenated string literals.
22
22
for tt in capture_tree_contents('.'):
23
23
assert isinstance(tt, tuple)
24
print ' (', repr(tt[0]) + ',',
24
print(' (', repr(tt[0]) + ',', end=' ')
34
34
for valline in val.splitlines(True):
39
39
if __name__ == '__main__':