#NEWLINE# def load_sidebar( ) : #NEWLINE# #INDENT# filepath = current_app . config . get ( 'SITE_SIDEBAR' ) #NEWLINE# if ( not filepath ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not os . path . exists ( filepath ) ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# with open ( f ) as f : #NEWLINE# #INDENT# content = f . read ( ) #NEWLINE# return content . decode ( 'utf-8' )