Permalink
Browse files

Replace 'while 1' with 'while True'

  • Loading branch information...
1 parent 9539206 commit 724df4b797b28cfea359310b1928f02eeee387be @gholms gholms committed Jun 8, 2012
Showing with 3 additions and 3 deletions.
  1. +1 −1 boto/manage/task.py
  2. +2 −2 tests/swf/test_layer1_workflow_execution.py
View
@@ -155,7 +155,7 @@ def __init__(self, queue_name):
self.queue = self.sqs.lookup(queue_name)
def poll(self, wait=60, vtimeout=60):
- while 1:
+ while True:
m = self.queue.read(vtimeout)
if m:
task = Task.get_by_id(m.get_body())
@@ -23,7 +23,7 @@ def run_decider(self):
"""
# Poll for a decision task.
tries = 0
- while 1:
+ while True:
dtask = self.conn.poll_for_decision_task(self._domain,
self._task_list, reverse_order=True)
if dtask.get('taskToken') is not None:
@@ -80,7 +80,7 @@ def run_worker(self):
"""
# Poll for an activity task.
tries = 0
- while 1:
+ while True:
atask = self.conn.poll_for_activity_task(self._domain,
self._task_list, identity='test worker')
if atask.get('activityId') is not None:

0 comments on commit 724df4b

Please sign in to comment.