convert print statements to py3

This commit is contained in:
Kyle Robbertze 2020-01-16 15:33:44 +02:00
parent 2aa4392a38
commit 632ba9acfe
15 changed files with 54 additions and 40 deletions

View file

@ -1,3 +1,4 @@
from __future__ import print_function
import ConfigParser
def read_config_file(config_path):
@ -6,10 +7,10 @@ def read_config_file(config_path):
try:
config.readfp(open(config_path))
except IOError as e:
print "Failed to open config file at " + config_path + ": " + e.strerror
print("Failed to open config file at {}: {}".format(config_path, e.strerror))
exit(-1)
except Exception as e:
print e.strerror
print(e.strerror)
exit(-1)
return config
return config