diff options
| author | Tomi Ollila <tomi.ollila@iki.fi> | 2017-09-03 23:24:55 +0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-09-04 08:03:52 -0300 |
| commit | 752653880833fb631ec3e350525d4bdb91efe290 (patch) | |
| tree | 9149d932a358161c2fcd3b171491724252a970cf /test | |
| parent | ec37900c5f0316e1f7345fe413402e6dc8bb9547 (diff) | |
test: notmuch_drop_mail_headers() style update
Changed "" quotes to '' as we're not supposed to dynamically
alter python program (via shell $variable expansion).
Added space to python program to match general python style.
Replaced $* with 'idiomatic' "$@" to serve as better example.
Diffstat (limited to 'test')
| -rw-r--r-- | test/test-lib.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test-lib.sh b/test/test-lib.sh index 09ee815d..35024649 100644 --- a/test/test-lib.sh +++ b/test/test-lib.sh @@ -509,12 +509,12 @@ NOTMUCH_DUMP_TAGS () notmuch_drop_mail_headers () { - $NOTMUCH_PYTHON -c " -import email,sys -msg=email.message_from_file(sys.stdin) + $NOTMUCH_PYTHON -c ' +import email, sys +msg = email.message_from_file(sys.stdin) for hdr in sys.argv[1:]: del msg[hdr] print(msg.as_string(False)) -" $* +' "$@" } notmuch_search_sanitize () |
