mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[WINESYNC] Fix for older versions of PyYAML
This commit is contained in:
parent
f83c907902
commit
79d15a1f37
1 changed files with 2 additions and 2 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Reference in a new issue