Show More
@@ -124,7 +124,7 b" def pretty(obj, verbose=False, max_width=79, newline='\\n', max_seq_length=MAX_SE" | |||
|
124 | 124 | Pretty print the object's representation. |
|
125 | 125 | """ |
|
126 | 126 | stream = CUnicodeIO() |
|
127 | printer = RepresentationPrinter(stream, verbose, max_width, newline, max_seq_length) | |
|
127 | printer = RepresentationPrinter(stream, verbose, max_width, newline, max_seq_length=max_seq_length) | |
|
128 | 128 | printer.pretty(obj) |
|
129 | 129 | printer.flush() |
|
130 | 130 | return stream.getvalue() |
@@ -134,7 +134,7 b" def pprint(obj, verbose=False, max_width=79, newline='\\n', max_seq_length=MAX_SE" | |||
|
134 | 134 | """ |
|
135 | 135 | Like `pretty` but print to stdout. |
|
136 | 136 | """ |
|
137 | printer = RepresentationPrinter(sys.stdout, verbose, max_width, newline, max_seq_length) | |
|
137 | printer = RepresentationPrinter(sys.stdout, verbose, max_width, newline, max_seq_length=max_seq_length) | |
|
138 | 138 | printer.pretty(obj) |
|
139 | 139 | printer.flush() |
|
140 | 140 | sys.stdout.write(newline) |
General Comments 0
You need to be logged in to leave comments.
Login now