parameters: (self, data_format='')
return_statement: return base_url.format(**data)
docstring: Returns an URL to the profile information associated with the
          Gravatar account.
docstring_summary: Returns an URL to the profile information associated with the
          Gravatar account.
docstring_tokens: Returns an URL to the profile information associated with the Gravatar account .
function: 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)
function_tokens: 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 )