#NEWLINE# def _dump_registry( cls , file = None ) : #NEWLINE# #INDENT# 'Debug helper to print the ABC registry.' #NEWLINE# ( ( print >> file ) , ( 'Class: %s.%s' % ( cls . __module__ , cls . __name__ ) ) ) #NEWLINE# ( ( print >> file ) , ( 'Inv.counter: %s' % ABCMeta . _abc_invalidation_counter ) ) #NEWLINE# for name in sorted ( cls . __dict__ . keys ( ) ) : #NEWLINE# #INDENT# if name . startswith ( '_abc_' ) : #NEWLINE# #INDENT# value = getattr ( cls , name ) #NEWLINE# ( ( print >> cls ) , ( '%s: %r' % ( name , value ) ) )