Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import yaml
- from oop_figures.loader.loader import Loader
- class YamlLoader(Loader):
- def __init__(self, file_name):
- super().__init__(file_name)
- def load(self):
- with open(self.file_name) as f:
- load_input = yaml.load(f)
- return load_input
Add Comment
Please, Sign In to add comment