python 2.6 compat

This commit is contained in:
Clint Armstrong 2015-09-02 13:01:38 -04:00
parent d377b70e19
commit eddb04aaef

View File

@ -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