Skip to content

Commit

Permalink
Re-add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
drodarie committed May 21, 2024
1 parent ca9b134 commit d5fd177
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions bsb_yaml/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,15 @@ class YAMLConfigurationParser(ParsesReferences, ConfigurationParser):
data_extensions = ("yaml", "yml")

def parse(self, content, path=None):
"""
Parse the YAML
:param content: File contents
:type content: str
:param path: Path the content came from
:type path: str
"""

content = yaml.safe_load(content)
meta = {"path": path}
return content, meta
Expand Down

0 comments on commit d5fd177

Please sign in to comment.