Fix Python 2.6 compatibility.

pull/3/head
Dave Page 2017-02-13 10:18:22 +00:00
parent 14f181d2ba
commit 56bd1f6c05
1 changed files with 1 additions and 1 deletions

View File

@ -428,7 +428,7 @@ class Database:
self.connection = None
def __enter__(self):
self.name = "test_db_{}".format(str(uuid.uuid4())[0:7])
self.name = "test_db_{0}".format(str(uuid.uuid4())[0:7])
self.maintenance_connection = get_db_connection(self.server['db'],
self.server['username'],
self.server['db_password'],