From 58a5de037738e47f8651458da44dddc617f05bb4 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Mon, 9 Jan 2017 11:45:11 -0800 Subject: [PATCH] lint: Fix % comprehensions being used without a tuple. --- contrib_bots/lib/xkcd.py | 2 +- integrations/google/google-calendar | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib_bots/lib/xkcd.py b/contrib_bots/lib/xkcd.py index c3286a0..6bb90a9 100644 --- a/contrib_bots/lib/xkcd.py +++ b/contrib_bots/lib/xkcd.py @@ -87,7 +87,7 @@ def get_xkcd_bot_response(message): except XkcdNotFoundError: logging.exception('XKCD server responded 404 when trying to fetch comic with id %s' % (command)) - return 'Sorry, there is likely no xkcd comic strip with id: #%s' % (command) + return 'Sorry, there is likely no xkcd comic strip with id: #%s' % (command,) else: return ("#%s: **%s**\n[%s](%s)" % (fetched['num'], fetched['title'], diff --git a/integrations/google/google-calendar b/integrations/google/google-calendar index 014b7e4..47b541e 100755 --- a/integrations/google/google-calendar +++ b/integrations/google/google-calendar @@ -143,7 +143,7 @@ def send_reminders(): key = (id, start) if key not in sent: if start.hour == 0 and start.minute == 0: - line = '%s is today.' % (summary) + line = '%s is today.' % (summary,) else: line = '%s starts at %s' % (summary, start.strftime('%H:%M')) print('Sending reminder:', line)