Put some parens on the print statements, so it works in Python 3.
Chris Pressey
8 years ago
41 | 41 | raise NotImplementedError(filename_format) |
42 | 42 | |
43 | 43 | for subdirname in dirnames: |
44 | print indent + subdirname + '/' | |
44 | print(indent + subdirname + '/') | |
45 | 45 | print_tree(os.path.join(dirname, subdirname), indent + ' ', |
46 | 46 | filename_format, maxwidth=maxwidth) |
47 | 47 | |
48 | 48 | for file_line in file_lines: |
49 | 49 | if file_line: |
50 | print indent + file_line | |
50 | print(indent + file_line) | |
51 | 51 | |
52 | 52 | |
53 | 53 | def main(args): |