bridge constructor: replaced deprecated readfp

This commit is contained in:
Goffi 2020-02-14 15:18:52 +01:00
commit 13a4177c08

View file

@ -124,7 +124,7 @@ class BridgeConstructor(object):
args = self.parse_args()
template_parser = Parser()
try:
template_parser.readfp(args.template)
template_parser.read_file(args.template)
except IOError:
print("The template file doesn't exist or is not accessible")
exit(1)