From eddb04aaef0064757f490ce31f4b6590cb75d9b7 Mon Sep 17 00:00:00 2001 From: Clint Armstrong Date: Wed, 2 Sep 2015 13:01:38 -0400 Subject: [PATCH] python 2.6 compat --- poller-service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poller-service.py b/poller-service.py index c5fed7077a..9f75d6a949 100755 --- a/poller-service.py +++ b/poller-service.py @@ -185,7 +185,7 @@ def getLock(lock, cursor=cursor): thread_cursors = [] for i in range(0, amount_of_workers): - thread_cursors.append(namedtuple('Cursor{}'.format(i), ['in_use', 'cursor', 'db'])) + thread_cursors.append(namedtuple('Cursor{0}'.format(i), ['in_use', 'cursor', 'db'])) thread_cursors[i].in_use = False thread_db_connection = connectDB() thread_cursors[i].cursor = thread_db_connection.cursor