@@ -575,7 +575,7 @@ def _list_repr_elided(v, threshold=200, edgeitems=3, indent=0, width=80):
575
575
return v_wrapped
576
576
577
577
578
- class ElidedWrapper :
578
+ class ElidedWrapper ( object ) :
579
579
"""
580
580
Helper class that wraps values of certain types and produces a custom
581
581
__repr__() that may be elided and is suitable for use during pretty
@@ -645,7 +645,7 @@ class ElidedPrettyPrinter(PrettyPrinter):
645
645
"""
646
646
def __init__ (self , * args , ** kwargs ):
647
647
self .threshold = kwargs .pop ('threshold' , 200 )
648
- super ( ElidedPrettyPrinter , self ) .__init__ (* args , ** kwargs )
648
+ PrettyPrinter .__init__ (self , * args , ** kwargs )
649
649
650
650
def _format (self , val , stream , indent , allowance , context , level ):
651
651
if ElidedWrapper .is_wrappable (val ):
@@ -655,5 +655,5 @@ def _format(self, val, stream, indent, allowance, context, level):
655
655
return self ._format (
656
656
elided_val , stream , indent , allowance , context , level )
657
657
else :
658
- return super ( ElidedPrettyPrinter , self ) ._format (
659
- val , stream , indent , allowance , context , level )
658
+ return PrettyPrinter ._format (
659
+ self , val , stream , indent , allowance , context , level )
0 commit comments