code: def updateList(self):
          
  
          logging.debug("Checking local and remote resolver list for update")
  
          # If the local resolver file does not exist, or it has expired
          if not os.path.isfile(self.listLocal) or \
                  os.path.getmtime(self.listLocal) < \
                  time.time() - self.updateListEvery:
              logging.info("Updating resolver list file")
              r = requests.get(
                  self.listLocation,
                  headers={
                      'User-Agent': "dnsyo/{0}".format(
                          pkg_resources.get_distribution("dnsyo").version
                      )
                  }
              )
  
              if r.status_code != 200:
                  # If status code response is not 200 and we don't
                  # already have a resolvers file, raise an exception
                  # Otherwise keep going with the old file
                  if not os.path.isfile(self.listLocal):
                      # File does not exist locally, we can't continue
                      raise EnvironmentError(
                          "List location returned HTTP status {0} and we "
                          "don't have a local copy of resolvers to fall "
                          "back on. Can't continue".format(
                              r.status_code
                          )
                      )
              else:
                  # Save the file
                  with open(self.listLocal, 'w') as lf:
                      lf.write(r.text)
docs: Check to see if the X{resolver list} needs updating
  
          Get the filemtime on the local list, if it's older than the hosted list
          download the new one