Skip to content

Commit

Permalink
Merge pull request #4 from deepakunni3/pyyaml-upgrade
Browse files Browse the repository at this point in the history
Upgrade pyyaml to v5.1b3
  • Loading branch information
dougli1sqrd committed Feb 28, 2019
2 parents 9b394cd + 997d6d8 commit 480957d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
mypy==0.501
nose2==0.6.5
pyyaml==5.1b3
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
long_description=open("README.md").read(),
keywords=["yaml", "markdown"],
install_requires=[
"pyYaml==4.2b4",
"pyYaml==5.1b3",
],
)
2 changes: 1 addition & 1 deletion yamldown/yamldown.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def _load(stream: IO[str]) -> Tuple[Dict, str]:

current_buffer.append(line)

yml_dict = yaml.load(yml_contents.contents) # type: Dict
yml_dict = yaml.load(yml_contents.contents, Loader=yaml.FullLoader) # type: Dict
return (yml_dict, md_contents.contents.strip("\n"))

def _is_yaml_start(line: str, yml_buffer: Buffer) -> bool:
Expand Down

0 comments on commit 480957d

Please sign in to comment.