From 436a27b19e12ac831e3d511fd4541fc56902c7d5 Mon Sep 17 00:00:00 2001 From: Vangelis Banos Date: Thu, 21 Mar 2019 19:34:52 +0000 Subject: [PATCH] Upgrade PyYAML to >=5.1 --- setup.py | 2 +- warcprox/main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index 6274eeb..56e8390 100755 --- a/setup.py +++ b/setup.py @@ -33,7 +33,7 @@ deps = [ 'PySocks>=1.6.8', 'cryptography>=2.3', 'idna>=2.5', - 'PyYAML<=3.13', + 'PyYAML>=5.1', ] try: import concurrent.futures diff --git a/warcprox/main.py b/warcprox/main.py index 06d8bfc..0ef5c58 100644 --- a/warcprox/main.py +++ b/warcprox/main.py @@ -309,7 +309,7 @@ def main(argv=None): if args.logging_conf_file: with open(args.logging_conf_file, 'r') as fd: - conf = yaml.load(fd) + conf = yaml.safe_load(fd) logging.config.dictConfig(conf) # see https://github.com/pyca/cryptography/issues/2911