<s> from __future__ import absolute_import <EOL> from flask import current_app as app <EOL> from flask . helpers import send_from_directory <EOL> from flask . views import MethodView <EOL> class StaticView ( MethodView ) : <EOL> def __init__ ( self , root , cache_timeout = <NUM_LIT:0> ) : <EOL> self . root = root <EOL> self . cache_timeout = app . config [ '<STR_LIT>' ] <EOL> def get ( self , filename ) : <EOL> return send_from_directory ( <EOL> self . root , filename , cache_timeout = self . cache_timeout ) </s>
