#NEWLINE# def get_default_output( self ) : #NEWLINE# #INDENT# 'Returns the first output option that is found in the list of options\n        that has a non-null value. If no output option is found, a\n        ``LookupError`` is raised\n\n        :returns: the default output option\n        :rtype: :class:`Option`\n        :raises LookupError: if no default option was found\n        ' #NEWLINE# for opt in self . get_by_type ( TYPE_OUTPUT ) : #NEWLINE# #INDENT# if ( opt . _value or ( opt . default is not None ) ) : #NEWLINE# #INDENT# return opt #NEWLINE# #UNINDENT# #UNINDENT# for opt in self . get_by_type ( TYPE_OUTPUT ) : #NEWLINE# #INDENT# return opt #NEWLINE# #UNINDENT# raise LookupError ( 'No default output option found' )