#NEWLINE# def make_stream_features( self , stream , features ) : #NEWLINE# #INDENT# 'Add resource binding feature to the <features/> element of the\n        stream.\n\n        [receving entity only]\n\n        :returns: update <features/> element.\n        ' #NEWLINE# self . stream = stream #NEWLINE# if ( stream . peer_authenticated and ( not stream . peer . resource ) ) : #NEWLINE# #INDENT# ElementTree . SubElement ( features , FEATURE_BIND )