Skip to content

Commit 4b6680b

Browse files
committed
Update defaults in doctest
1 parent 67c9eaa commit 4b6680b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Doc/library/pprint.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ PrettyPrinter objects
166166
>>> import pprint
167167
>>> stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni']
168168
>>> stuff.insert(0, stuff[:])
169-
>>> pp = pprint.PrettyPrinter(indent=4)
169+
>>> pp = pprint.PrettyPrinter()
170170
>>> pp.pprint(stuff)
171171
[
172172
['spam', 'eggs', 'lumberjack', 'knights', 'ni'],
@@ -176,12 +176,12 @@ PrettyPrinter objects
176176
'knights',
177177
'ni',
178178
]
179-
>>> pp = pprint.PrettyPrinter(width=41, compact=True, expand=False)
179+
>>> pp = pprint.PrettyPrinter(indent=1, width=41, compact=True, expand=False)
180180
>>> pp.pprint(stuff)
181-
[ [ 'spam', 'eggs', 'lumberjack',
182-
'knights', 'ni'],
183-
'spam', 'eggs', 'lumberjack',
184-
'knights', 'ni']
181+
[['spam', 'eggs', 'lumberjack',
182+
'knights', 'ni'],
183+
'spam', 'eggs', 'lumberjack', 'knights',
184+
'ni']
185185
>>> pp = pprint.PrettyPrinter(width=41, indent=3)
186186
>>> pp.pprint(stuff)
187187
[

0 commit comments

Comments
 (0)