Skip to content

Commit fc86350

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3ffc922 commit fc86350

3 files changed

Lines changed: 93 additions & 64 deletions

File tree

pprint36/_pprint.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,24 @@
4646
def pprint(object, stream=None, indent=1, width=80, depth=None, *, compact=False, sort_dicts=True):
4747
"""Pretty-print a Python object to a stream [default is sys.stdout]."""
4848
printer = PrettyPrinter(
49-
stream=stream, indent=indent, width=width, depth=depth, compact=compact, sort_dicts=sort_dicts
49+
stream=stream,
50+
indent=indent,
51+
width=width,
52+
depth=depth,
53+
compact=compact,
54+
sort_dicts=sort_dicts,
5055
)
5156
printer.pprint(object)
5257

5358

5459
def pformat(object, indent=1, width=80, depth=None, *, compact=False, sort_dicts=True):
5560
"""Format a Python object into a pretty-printed representation."""
5661
return PrettyPrinter(
57-
indent=indent, width=width, depth=depth, compact=compact, sort_dicts=sort_dicts
62+
indent=indent,
63+
width=width,
64+
depth=depth,
65+
compact=compact,
66+
sort_dicts=sort_dicts,
5867
).pformat(object)
5968

6069

tests/_test_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ def test_singleton_empty_frozenset(self):
726726
frozenset(range(0)),
727727
frozenset(frozenset()),
728728
frozenset(f),
729-
f
729+
f,
730730
]
731731
# All of the empty frozensets should have just one id()
732732
self.assertEqual(len(set(map(id, efs))), 1)
@@ -836,7 +836,7 @@ def test_singleton_empty_frozenset(self):
836836
f,
837837
F,
838838
Frozenset(f),
839-
Frozenset(F)
839+
Frozenset(F),
840840
]
841841
# All empty frozenset subclass instances should have different ids
842842
self.assertEqual(len(set(map(id, efs))), len(efs))

0 commit comments

Comments
 (0)