From 224a047da03310723d9586618d4a550562b468d9 Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 6 Jun 2022 16:33:17 +0800 Subject: [PATCH] =?UTF-8?q?requirements=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/helper.py | 4 ++-- requirements.txt | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/config/helper.py b/config/helper.py index 3a737e5..4c67e88 100644 --- a/config/helper.py +++ b/config/helper.py @@ -1,9 +1,9 @@ from pathlib import Path -import yaml +from ruamel import yaml def config(): settings_file = str(Path(__file__).parent.absolute()) + '/settings.yml' with open(settings_file, 'r') as f: - return yaml.load(f, Loader=yaml.FullLoader) + return yaml.load(f, Loader=yaml.UnsafeLoader) diff --git a/requirements.txt b/requirements.txt index dcc86b3..7b7733b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,7 +1,6 @@ colorama==0.4.4 -protobuf==3.19.1 -PyYAML==6.0 selenium==4.1.0 requests==2.27.1 mitmproxy~=7.0.4 +protobuf<3.19 \ No newline at end of file