#NEWLINE# def __init__( self , * args , **kwargs ) : #NEWLINE# #INDENT# newdefault = None #NEWLINE# newargs = ( ) #NEWLINE# if args : #NEWLINE# #INDENT# newdefault = args [ 0 ] #NEWLINE# if ( not ( ( newdefault is None ) or callable ( newdefault ) ) ) : #NEWLINE# #INDENT# raise TypeError ( 'first argument must be callable or None' ) #NEWLINE# #UNINDENT# newargs = args [ 1 : ] #NEWLINE# #UNINDENT# self . default_factory = newdefault #NEWLINE# super ( self . __class__ , self ) . __init__ ( * newargs , ** kwargs )