#NEWLINE# def set_stream_info( self ) : #NEWLINE# #INDENT# if ( ( self . public_key is None ) and ( self . key is None ) ) : #NEWLINE# #INDENT# d = self . stream_info_manager . get_stream_info ( set_stream_info . stream_hash ) #NEWLINE# def set_stream_info( stream_info ) : #NEWLINE# #INDENT# ( public_key , key , stream_name ) = stream_info #NEWLINE# self . public_key = public_key #NEWLINE# self . key = binascii . unhexlify ( key ) #NEWLINE# self . stream_name = binascii . unhexlify ( stream_name ) #NEWLINE# #UNINDENT# d . addCallback ( set_stream_info ) #NEWLINE# return d #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return defer . succeed ( True )