#NEWLINE# @ staticmethod #NEWLINE# def convert( filename ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# from hashlib import md5 #NEWLINE# #UNINDENT# except ImportError : #NEWLINE# #INDENT# from md5 import md5 #NEWLINE# #UNINDENT# ( _f , ext ) = os . path . splitext ( filename ) #NEWLINE# f = md5 ( md5 ( ( '%f%s%f%s' % ( time . time ( ) , id ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) , random . random ( ) , os . getpid ( ) ) ) ) . hexdigest ( ) ) . hexdigest ( ) #NEWLINE# return ( f + ext )