#NEWLINE# def _docstring( self , signature = 0 ) : #NEWLINE# #INDENT# ' Jedi show doctring or signature\n\n        :rtype: str\n        ' #NEWLINE# defs = self . script . goto_definitions ( ) #NEWLINE# assert isinstance ( self , list ) #NEWLINE# if ( len ( defs ) > 0 ) : #NEWLINE# #INDENT# if signature : #NEWLINE# #INDENT# calltip_signature = defs [ 0 ] . docstring ( ) . split ( '\n\n' ) [ 0 ] #NEWLINE# return calltip_signature . replace ( '\n' , ' ' ) . replace ( ' = ' , '=' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return defs [ 0 ] . docstring ( )