diff options
author | Lars Wirzenius <liw@liw.fi> | 2018-05-03 18:27:31 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2018-05-03 18:27:31 +0300 |
commit | 510ea5eb791efba7054782c7d24136e3b94f41b2 (patch) | |
tree | 02f64f6fea0aaba03f64de57e89ec5c7a52bd322 /slog-pretty | |
parent | b6561e1b6dc04c0d9d38eedb3498d689bc80f5f1 (diff) | |
download | slog-510ea5eb791efba7054782c7d24136e3b94f41b2.tar.gz |
Change: use cSafeDumper for speed
Diffstat (limited to 'slog-pretty')
-rwxr-xr-x | slog-pretty | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/slog-pretty b/slog-pretty index bacff37..4660c00 100755 --- a/slog-pretty +++ b/slog-pretty @@ -22,7 +22,7 @@ def dump(f): obj = json.loads(line.strip()) yaml.dump( obj, stream=sys.stdout, indent=4, default_flow_style=False, - explicit_start=True, explicit_end=True) + explicit_start=True, explicit_end=True, Dumper=yaml.CSafeDumper) if len(sys.argv) == 1: |