(self, data_format='')
return base_url.format(**data)
Returns an URL to the profile information associated with the
        Gravatar account.
Returns an URL to the profile information associated with the
        Gravatar account.
Returns an URL to the profile information associated with the Gravatar account .
def get_profile(self, data_format=''):
        """
        Returns an URL to the profile information associated with the
        Gravatar account.
        """
        base_url = 'http://www.gravatar.com/{hash}{data_format}'

        valid_formats = ['json', 'xml', 'php', 'vcf', 'qr']
        if data_format and data_format in valid_formats:
            data_format = '.%s' % data_format

        data = {
            'hash': self.email_hash,
            'data_format': data_format,
        }
        return base_url.format(**data)
def get_profile ( self , data_format = '' ) : base_url = 'http://www.gravatar.com/{hash}{data_format}' valid_formats = [ 'json' , 'xml' , 'php' , 'vcf' , 'qr' ] if data_format and data_format in valid_formats : data_format = '.%s' % data_format data = { 'hash' : self . email_hash , 'data_format' : data_format , } return base_url . format ( * * data )