#NEWLINE# def __print_async( self , frame_type , headers , body ) : #NEWLINE# #INDENT# '\n        Utility function to print a message and setup the command prompt\n        for the next input\n        ' #NEWLINE# if self . __quit : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# self . __sysout ( '\r  \r' , end = '' ) #NEWLINE# if self . verbose : #NEWLINE# #INDENT# self . __sysout ( frame_type ) #NEWLINE# for ( k , v ) in headers . items ( ) : #NEWLINE# #INDENT# self . __sysout ( ( '%s: %s' % ( k , v ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# if ( self . prompt != '' ) : #NEWLINE# #INDENT# self . __sysout ( '' ) #NEWLINE# #UNINDENT# self . __sysout ( frame_type ) #NEWLINE# self . __sysout ( self . prompt , end = '' ) #NEWLINE# self . stdout . flush ( )