parameters: (self, username)
return_statement: return res.text
docstring: Fetch a public key for an user.
docstring_summary: Fetch a public key for an user.
docstring_tokens: Fetch a public key for an user .
function: def _get_public_key(self, username):
          """Fetch a public key for an user."""
          url = '{}/{}/key.asc'.format(self.base_url, username)
          log.debug('Will query keybase url {}'.format(url))
          res = requests.get(url, headers=self.headers, timeout=self.timeout)
          if res.status_code != 200:
              log.error('Keybase user key fetch status {} for {}'.
                        format(res.status_code, username))
              return None
          return res.text
function_tokens: def _get_public_key ( self , username ) : url = '{}/{}/key.asc' . format ( self . base_url , username ) log . debug ( 'Will query keybase url {}' . format ( url ) ) res = requests . get ( url , headers = self . headers , timeout = self . timeout ) if res . status_code != 200 : log . error ( 'Keybase user key fetch status {} for {}' . format ( res . status_code , username ) ) return None return res . text