utils.py [45:56]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                contents = open_json(input_file=filepath)
                return contents
            elif (
                    filepath.endswith(".yaml") is True
                    or
                    filepath.endswith(".yml") is True
            ):
                contents = open_yaml(input_file=filepath)
                return contents
            else:
                logging.info("Incorrect file type. An input file should be yaml or json.")
                sys.exit(1)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



utils.py [63:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                contents = open_json(input_file=filepath)
                return contents
            elif (
                    filepath.endswith(".yaml") is True
                    or
                    filepath.endswith(".yml") is True
            ):
                contents = open_yaml(input_file=filepath)
                return contents
            else:
                logging.info("Incorrect file type. An input file should be yaml or json.")
                sys.exit(1)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



