Mercurial > libervia-backend
diff sat/bridge/bridge_constructor/bridge_constructor.py @ 3169:560642ab1c10
bridge constructor: replaced deprecated `readfp`
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 14 Feb 2020 15:18:52 +0100 |
parents | 559a625a236b |
children | be6d91572633 |
line wrap: on
line diff
--- a/sat/bridge/bridge_constructor/bridge_constructor.py Wed Feb 12 19:46:14 2020 +0100 +++ b/sat/bridge/bridge_constructor/bridge_constructor.py Fri Feb 14 15:18:52 2020 +0100 @@ -124,7 +124,7 @@ 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)