Skip to content

Commit

Permalink
remoção de warning do YAML em pyladies_generator.py (issue pythonbras…
Browse files Browse the repository at this point in the history
  • Loading branch information
JucianeBarros committed Oct 11, 2019
1 parent afcae82 commit 8a89d86
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyladies_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from urllib.request import urlopen

import yaml
from yaml import BaseLoader
from slugify import slugify


Expand All @@ -31,7 +32,7 @@ def scrapping_pyladies():
com os dados das sedes da Pyladies.
"""
html = urlopen(PYLADIES_YAML).read()
return yaml.load(html)
return yaml.load(html, Loader=BaseLoader)


def get_filename(directory, locale):
Expand Down

0 comments on commit 8a89d86

Please sign in to comment.