#NEWLINE# def register_feature( cls , obj ) : #NEWLINE# #INDENT# if hasattr ( obj , 'fget' ) : #NEWLINE# #INDENT# name = obj . fget . __name__ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if hasattr ( obj , '__func__' ) : #NEWLINE# #INDENT# name = obj . __func__ . __name__ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# name = obj . __name__ #NEWLINE# #UNINDENT# #UNINDENT# features [ cls ] . add ( name )