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 | |
parent | b6561e1b6dc04c0d9d38eedb3498d689bc80f5f1 (diff) | |
download | slog-510ea5eb791efba7054782c7d24136e3b94f41b2.tar.gz |
Change: use cSafeDumper for speed
-rw-r--r-- | NEWS | 1 | ||||
-rwxr-xr-x | slog-pretty | 2 |
2 files changed, 2 insertions, 1 deletions
@@ -7,6 +7,7 @@ This file summarizes changes between releases of `slog`. Version 0.5+git, not yet released --------------------------------- +* Use `CSafeDumper` in `slog-pretty`, for speed. Version 0.5, released 2017-10-06 --------------------------------- 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: |