aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authortlatorre <tlatorre@uchicago.edu>2019-06-02 15:24:44 -0400
committertlatorre <tlatorre@uchicago.edu>2019-06-02 15:24:44 -0400
commit5188134d9edb362f45ca94acc9bfda49d361a430 (patch)
tree528db3735ad60fc04a4578a86a9c52de23ae423c /utils
parent429167997b816b9fe1f74748637d43c2b0e76ff7 (diff)
downloadsddm-5188134d9edb362f45ca94acc9bfda49d361a430.tar.gz
sddm-5188134d9edb362f45ca94acc9bfda49d361a430.tar.bz2
sddm-5188134d9edb362f45ca94acc9bfda49d361a430.zip
use yaml.loader.SafeLoader
Diffstat (limited to 'utils')
-rwxr-xr-xutils/submit-grid-jobs7
1 files changed, 2 insertions, 5 deletions
diff --git a/utils/submit-grid-jobs b/utils/submit-grid-jobs
index 06ddae9..13bddfe 100755
--- a/utils/submit-grid-jobs
+++ b/utils/submit-grid-jobs
@@ -15,10 +15,7 @@
# this program. If not, see <https://www.gnu.org/licenses/>.
from __future__ import print_function, division
-try:
- from yaml import full_load as load
-except ImportError:
- from yaml import load
+import yaml
import string
from os.path import split, splitext, join, abspath
import uuid
@@ -130,7 +127,7 @@ if __name__ == '__main__':
else:
output = check_output([join(args.dir,"zdab-cat"),filename])
- data = load(output)
+ data = yaml.load(output,Loader=yaml.loader.SafeLoader)
filename = abspath(filename)