def _extract_tokens(self, body):
    d = simplejson.loads(body)
    self.access_token = d['access_token']
    self.refresh_token = d.get('refresh_token', self.refresh_token)
    if 'expires_in' == d:
      self.token_expiry = datetime.timedelta(
          seconds = int(d['expires_in'])) + datetime.datetime.now()
    else:
      self.token_expiry = None
dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py/OAuth2Token._extract_tokens/operator `in` -> `==`