#NEWLINE# def render( self , context ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# email = self . email . resolve ( context ) #NEWLINE# #UNINDENT# except template . VariableDoesNotExist : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# default = 'mm' #NEWLINE# size = 24 #NEWLINE# return '//www.gravatar.com/avatar/{}?{}' . format ( hashlib . md5 ( email . lower ( ) ) . hexdigest ( ) , urllib . urlencode ( { #NEWLINE# #INDENT# 'd' : default , #NEWLINE# 's' : str ( size ) , #NEWLINE# #UNINDENT# } ) )