@env.catch_exceptions
def show_doc():
 with RopeContext() as ctx:
  (source, offset) = env.get_offset_params()
  try:
   doc = codeassist.get_doc(ctx.project, source, offset, ctx.resource, maxfixes=3)
   if (not doc):
    raise exceptions.BadIdentifierError
   env.let('l:output', doc.split('\n'))
  except exceptions.BadIdentifierError:
   env.error('No documentation found.')

@ env . catch_exceptions def show_doc ( ) : with RopeContext ( ) as ctx : ( source , offset ) = env . get_offset_params ( ) try : doc = codeassist . get_doc ( ctx . project , source , offset , ctx . resource , maxfixes = 3 ) if ( not doc ) : raise exceptions . BadIdentifierError env . let ( 'l:output' , doc . split ( '\n' ) ) except exceptions . BadIdentifierError : env . error ( 'No documentation found.' )
show documentation .