pprint: Remove conversion to int, we only accept those
This commit is contained in:
parent
64b5b665cf
commit
283a746dad
|
@ -78,8 +78,6 @@ class PrettyPrinter:
|
||||||
The maximum depth to print out nested structures.
|
The maximum depth to print out nested structures.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
indent = int(indent)
|
|
||||||
width = int(width)
|
|
||||||
if indent < 0:
|
if indent < 0:
|
||||||
raise ValueError("indent must be >= 0")
|
raise ValueError("indent must be >= 0")
|
||||||
if depth is not None and depth <= 0:
|
if depth is not None and depth <= 0:
|
||||||
|
|
Loading…
Reference in New Issue