From fc3a4a6ac0c7fde09a8860f3cba27f47d5fefb5d Mon Sep 17 00:00:00 2001 From: Leo Franchi Date: Wed, 30 Jan 2013 11:49:39 -0500 Subject: [PATCH] Convert to []-style list comprehensions to quiet pyflakes (imported from commit d81ec98552846d8af71394c7c530aadc53f77127) --- humbug/bots/zephyr_mirror_backend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/humbug/bots/zephyr_mirror_backend.py b/humbug/bots/zephyr_mirror_backend.py index fc0c4ce..31a0184 100755 --- a/humbug/bots/zephyr_mirror_backend.py +++ b/humbug/bots/zephyr_mirror_backend.py @@ -149,7 +149,7 @@ def zephyr_bulk_subscribe(subs): # retrying the next time the bot checks its subscriptions are # up to date. logger.exception("Error subscribing to streams (will retry automatically):") - logging.warning("Streams were: %s" % (list(cls for cls, instance, recipient in subs),)) + logging.warning("Streams were: %s" % ([cls for cls, instance, recipient in subs],)) return try: actual_zephyr_subs = [cls for (cls, _, _) in zephyr._z.getSubscriptions()]