def get(self, block=True, timeout=None):
    def GetAction():

      try:
        result = self.requeue.get(block=False)


        self.requeue.task_done()
      except Queue.Empty:

        result = self.queue.get(block=False)

      return result
    return self._DoWithTimeout(GetAction,
                               Queue.Empty,
                               self.put_cond,
                               self.get_cond,
                               self.lock,
                               timeout=timeout,
                               block=block)
Get an item from the requeue.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/tools/requeue.py/ReQueue.get