Use format method instead of old style %.

From what I have read using format is a prefered and more powerful method.
http://stackoverflow.com/questions/5082452/python-string-formatting-vs-format
This commit is contained in:
uggla 2015-07-10 12:22:09 +02:00
parent 8fb8a77dca
commit 925e4ced0a
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ def create_ci():
# Now do a "broadcast" get to all our drivers
for driver in config.alexandria.drivers:
app.logger.info("Get information from %s driver." % driver.get_driver_type())
app.logger.info("Get information from {} driver.".format(driver.get_driver_type()))
driver.get_ci(ci)