Skip to content

Commit

Permalink
Upgrade to PyYAML 5.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Esteban Sánchez committed Jul 10, 2020
1 parent 24be1ae commit 89f2319
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prometheus_pgbouncer_exporter/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def env_var_multi_replacer(loader, node):
# Read file
try:
stream = open(filepath, "r")
self.config = yaml.load(stream)
self.config = yaml.load(stream, Loader=yaml.FullLoader)

# Handle an empty configuration file
if not self.config:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ psycopg2==2.7.3.2
prometheus_client==0.0.21
python-json-logger==0.1.5
pycodestyle
PyYAML==5.1
PyYAML==5.3.1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
keywords = ['prometheus', 'pgbouncer'],
classifiers = [],
python_requires = ' >= 3',
install_requires = ['psycopg2 == 2.7.3.2', 'prometheus_client==0.0.21', 'python-json-logger==0.1.5', 'PyYAML==5.1'],
install_requires = ['psycopg2 == 2.7.3.2', 'prometheus_client==0.0.21', 'python-json-logger==0.1.5', 'PyYAML==5.3.1'],
entry_points = {
'console_scripts': [
'pgbouncer-exporter=prometheus_pgbouncer_exporter.cli:main',
Expand Down

0 comments on commit 89f2319

Please sign in to comment.