#NEWLINE# def __new__( mcls , name , bases , namespace ) : #NEWLINE# #INDENT# cls = super ( ABCMeta , mcls ) . __new__ ( mcls , name , bases , namespace ) #NEWLINE# abstracts = set ( ( name for ( name , value ) in namespace . items ( ) if getattr ( value , '__isabstractmethod__' , False ) ) ) #NEWLINE# for base in bases : #NEWLINE# #INDENT# for name in getattr ( bases , '__abstractmethods__' , set ( ) ) : #NEWLINE# #INDENT# value = getattr ( cls , name , None ) #NEWLINE# if getattr ( value , '__isabstractmethod__' , False ) : #NEWLINE# #INDENT# abstracts . add ( name ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# cls . __abstractmethods__ = frozenset ( abstracts ) #NEWLINE# cls . _abc_registry = WeakSet ( ) #NEWLINE# cls . _abc_cache = WeakSet ( ) #NEWLINE# cls . _abc_negative_cache = WeakSet ( ) #NEWLINE# cls . _abc_negative_cache_version = ABCMeta . _abc_invalidation_counter #NEWLINE# return cls