<s> from pump . middleware . file import * <EOL> def wrap_static ( app , public_dir , static_urls ) : <EOL> app_with_file = wrap_file ( app , public_dir ) <EOL> def wrapped_app ( req ) : <EOL> if any ( [ req [ "<STR_LIT>" ] . startswith ( s ) for s in static_urls ] ) : <EOL> return app_with_file ( req ) <EOL> else : <EOL> return app ( req ) <EOL> return wrapped_app </s>
