From: Tomi Ollila Date: Sun, 3 Sep 2017 20:24:55 +0000 (+0300) Subject: test: notmuch_drop_mail_headers() style update X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=752653880833fb631ec3e350525d4bdb91efe290;p=notmuch.git 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. --- 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 ()