mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
Apply Python 3 futurize transform lib2to3.fixes.fix_idioms
Refer to #256
This commit is contained in:
committed by
Tim Abbott
parent
ab7287474e
commit
4fb549abe8
@@ -122,7 +122,7 @@ def run_mirror():
|
||||
try:
|
||||
# we use an exponential backoff approach when we get 429 (Too Many Requests).
|
||||
sleepInterval = 1
|
||||
while 1:
|
||||
while True:
|
||||
time.sleep(sleepInterval)
|
||||
response = requests.get("https://basecamp.com/%s/api/v1/events.json" % (config.BASECAMP_ACCOUNT_ID),
|
||||
params={'since': since},
|
||||
|
||||
@@ -277,7 +277,7 @@ def run_mirror():
|
||||
|
||||
try:
|
||||
sleepInterval = 1
|
||||
while 1:
|
||||
while True:
|
||||
events = make_api_call("activity")[::-1]
|
||||
if events is not None:
|
||||
sleepInterval = 1
|
||||
|
||||
Reference in New Issue
Block a user