code: def check_urls (urlqueue, logger):
      
      while not urlqueue.empty():
          url_data = urlqueue.get()
          try:
              check_url(url_data, logger)
          finally:
              urlqueue.task_done(url_data)
docs: Check URLs without threading.