mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
python 2.6 compat
This commit is contained in:
parent
d377b70e19
commit
eddb04aaef
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user