#NEWLINE# def handle_other( self ) : #NEWLINE# #INDENT# 'Handles static files requests.' #NEWLINE# res_basename = os . path . basename ( self . path ) #NEWLINE# if ( res_basename == 'favicon.ico' ) : #NEWLINE# #INDENT# return ( '' , '' ) #NEWLINE# #UNINDENT# res_filename = os . path . join ( os . path . dirname ( __file__ ) , _STATIC_DIR , res_basename ) #NEWLINE# with io . open ( res_filename , 'rb' ) as res_file : #NEWLINE# #INDENT# content = res_file . read ( ) #NEWLINE# #UNINDENT# ( _ , extension ) = os . path . splitext ( self . path ) #NEWLINE# return ( content , ( 'text/%s' % res_filename ) )