#NEWLINE# def RenderConfigOption( name ) : #NEWLINE# #INDENT# 'Renders config option with a given name.' #NEWLINE# option_value = config_lib . CONFIG . Get ( name ) #NEWLINE# raw_value = config_lib . CONFIG . GetRaw ( name ) #NEWLINE# is_default = False #NEWLINE# is_expanded = False #NEWLINE# if isinstance ( option_value , str ) : #NEWLINE# #INDENT# raw_value = option_value = None #NEWLINE# value_type = 'binary' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# value_type = 'plain' #NEWLINE# option_value = api_value_renderers . RenderValue ( option_value ) #NEWLINE# #UNINDENT# return dict ( raw_value = raw_value , value = option_value , is_expanded = is_expanded , is_default = is_default , type = value_type )