<s> from __future__ import absolute_import <EOL> import re <EOL> from werkzeug . utils import secure_filename as werkzeug_secure_filename <EOL> def iso8601format ( dt ) : <EOL> """<STR_LIT>""" <EOL> return dt . strftime ( '<STR_LIT>' ) if dt else '<STR_LIT>' <EOL> def secure_filename ( filename ) : <EOL> """<STR_LIT>""" <EOL> secure = werkzeug_secure_filename ( filename ) <EOL> try : <EOL> secure = re . search ( '<STR_LIT>' , filename ) . group ( ) + secure <EOL> except AttributeError : <EOL> pass <EOL> return secure </s>
