From 26eeb9549e7f1e587cbfd9808f05f374f53d9805 Mon Sep 17 00:00:00 2001 From: Eklavya Sharma Date: Thu, 10 Mar 2016 19:22:28 +0530 Subject: [PATCH] Apply Python 3 futurize transform lib2to3.fixes.fix_idioms Refer to #256 --- integrations/basecamp/zulip_basecamp_mirror | 2 +- integrations/codebase/zulip_codebase_mirror | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/integrations/basecamp/zulip_basecamp_mirror b/integrations/basecamp/zulip_basecamp_mirror index 4bc4f66..cdf64b8 100755 --- a/integrations/basecamp/zulip_basecamp_mirror +++ b/integrations/basecamp/zulip_basecamp_mirror @@ -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}, diff --git a/integrations/codebase/zulip_codebase_mirror b/integrations/codebase/zulip_codebase_mirror index 1bab1a8..84e9a55 100755 --- a/integrations/codebase/zulip_codebase_mirror +++ b/integrations/codebase/zulip_codebase_mirror @@ -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