File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import os
2
2
import glob
3
- from ruamel import yaml
3
+ from ruamel . yaml import YAML
4
4
5
5
6
6
def _find_file (file , fallback_wildcard ):
@@ -33,7 +33,8 @@ def load_config(cfg_file):
33
33
'''
34
34
cfg_file = _find_file (cfg_file , './config.yaml' )
35
35
with open (cfg_file , "r" , encoding = "utf8" ) as fp :
36
- config = yaml .safe_load (fp )
36
+ yaml = YAML (typ = "safe" )
37
+ config = yaml .load (fp )
37
38
38
39
# fix relative paths
39
40
base = os .path .dirname (cfg_file )
Original file line number Diff line number Diff line change 1
1
import os
2
2
import shutil
3
3
import csv
4
- from ruamel import yaml
4
+ from ruamel . yaml import YAML
5
5
import subprocess
6
6
import logging
7
7
@@ -60,6 +60,7 @@ def _prepare_config(self):
60
60
new_config ['manifest' ]['solution_id' ] = 'solution.id'
61
61
62
62
with open (self ._get_config_file (), 'w' ) as fp :
63
+ yaml = YAML (typ = "safe" )
63
64
yaml .dump (new_config , fp )
64
65
65
66
def _verify_download (self ):
You can’t perform that action at this time.
0 commit comments