def _LoadAppScaleCookie(self):
    """ Loads the AppScale authentication cookie for the current AppServer.
    """
    self.cookie_jar.clear_session_cookies()
    self.cookie_jar.filename = self._GetAppScaleCookiePath()

    if os.path.exists(self.cookie_jar.filename):
      try:
        self.cookie_jar.load()
        logger.info("Loaded authentication cookies from %s" % \
          self.cookie_jar.filename)
      except (__HOLE__, IOError, cookielib.LoadError), e:
        logger.debug("Could not load authentication cookies; %s: %s" % \
          (e.__class__.__name__, e))
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/appengine_rpc.py/AbstractRpcServer._LoadAppScaleCookie