Apply Python 3 futurize transform lib2to3.fixes.fix_idioms

Refer to #256
This commit is contained in:
Eklavya Sharma 2016-03-10 19:22:28 +05:30 committed by Tim Abbott
parent d8b2b5a0d8
commit 26eeb9549e
2 changed files with 2 additions and 2 deletions

View file

@ -122,7 +122,7 @@ def run_mirror():
try: try:
# we use an exponential backoff approach when we get 429 (Too Many Requests). # we use an exponential backoff approach when we get 429 (Too Many Requests).
sleepInterval = 1 sleepInterval = 1
while 1: while True:
time.sleep(sleepInterval) time.sleep(sleepInterval)
response = requests.get("https://basecamp.com/%s/api/v1/events.json" % (config.BASECAMP_ACCOUNT_ID), response = requests.get("https://basecamp.com/%s/api/v1/events.json" % (config.BASECAMP_ACCOUNT_ID),
params={'since': since}, params={'since': since},

View file

@ -277,7 +277,7 @@ def run_mirror():
try: try:
sleepInterval = 1 sleepInterval = 1
while 1: while True:
events = make_api_call("activity")[::-1] events = make_api_call("activity")[::-1]
if events is not None: if events is not None:
sleepInterval = 1 sleepInterval = 1