https://git.reactos.org/?p=reactos.git;a=commitdiff;h=79d15a1f371ebebd8d38e…
commit 79d15a1f371ebebd8d38e0891201ff3b136a8548
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Mon Sep 21 15:27:21 2020 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Thu Feb 4 16:37:00 2021 +0100
[WINESYNC] Fix for older versions of PyYAML
---
sdk/tools/winesync/winesync.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sdk/tools/winesync/winesync.py b/sdk/tools/winesync/winesync.py
index 69f31601490..44fbf1e332f 100644
--- a/sdk/tools/winesync/winesync.py
+++ b/sdk/tools/winesync/winesync.py
@@ -26,7 +26,7 @@ class wine_sync:
def __init__(self, module):
if os.path.isfile('winesync.cfg'):
with open('winesync.cfg', 'r') as file_input:
- config = yaml.load(file_input, Loader=yaml.FullLoader)
+ config = yaml.safe_load(file_input)
self.reactos_src = config['repos']['reactos']
self.wine_src = config['repos']['wine']
self.wine_staging_src = config['repos']['wine-staging']
@@ -52,7 +52,7 @@ class wine_sync:
# get the actual state for the asked module
self.module = module
with open(module + '.cfg', 'r') as file_input:
- self.module_cfg = yaml.load(file_input, Loader=yaml.FullLoader)
+ self.module_cfg = yaml.safe_load(file_input)
self.staged_patch_dir = os.path.join('sdk', 'tools',
'winesync', self.module + '_staging')