Skip to content

Commit 918cfd4

Browse files
committed
utils: use boolean in while loop
1 parent 9acb37a commit 918cfd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

troposphere/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ def get_events(conn, stackname):
99
"""Get the events in batches and return in chronological order"""
1010
next = None
1111
event_list = []
12-
while 1:
12+
while True:
1313
events = conn.describe_stack_events(stackname, next)
1414
event_list.append(events)
1515
if events.next_token is None:
@@ -31,7 +31,7 @@ def tail(conn, stack_name, log_func=_tail_print, sleep_time=5, include_initial=T
3131
seen.add(e.event_id)
3232

3333
# Now keep looping through and dump the new events
34-
while 1:
34+
while True:
3535
events = get_events(conn, stack_name)
3636
for e in events:
3737
if e.event_id not in seen:

0 commit comments

Comments
 (0)