diff options
author | tlatorre <tlatorre@uchicago.edu> | 2019-06-20 16:01:52 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2019-06-20 16:01:52 -0500 |
commit | f255a7d36c551e36e8b7ed7c821e526db27f6fc2 (patch) | |
tree | adc6c95dc62252f9dcc86f6d7f86f053d220be58 /utils | |
parent | 9032bccb49f1d700e8207faa90ea9725c75a769a (diff) | |
download | sddm-f255a7d36c551e36e8b7ed7c821e526db27f6fc2.tar.gz sddm-f255a7d36c551e36e8b7ed7c821e526db27f6fc2.tar.bz2 sddm-f255a7d36c551e36e8b7ed7c821e526db27f6fc2.zip |
update cat-grid-jobs to use CDumper to speed things up
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/cat-grid-jobs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/cat-grid-jobs b/utils/cat-grid-jobs index 5f22ee8..ba06290 100755 --- a/utils/cat-grid-jobs +++ b/utils/cat-grid-jobs @@ -30,9 +30,9 @@ Example: from __future__ import print_function, division import yaml try: - from yaml import CLoader as Loader + from yaml import CLoader as Loader, CDumper as Dumper except ImportError: - from yaml.loader import SafeLoader as Loader + from yaml import Loader, Dumper if __name__ == '__main__': import argparse @@ -109,4 +109,4 @@ if __name__ == '__main__': # mismatching zdab and fit results print("added %i/%i fit results to a total of %i events" % (events_with_fit, len(fit_results), total_events),file=sys.stderr) - print(yaml.dump(doc,default_flow_style=False)) + print(yaml.dump(doc,default_flow_style=False,Dumper=Dumper)) |