]> rtime.felk.cvut.cz Git - notmuch.git/commitdiff
nmbug-status: Consolidate functions and main code
authorW. Trevor King <wking@tremily.us>
Mon, 10 Feb 2014 18:40:27 +0000 (10:40 -0800)
committerDavid Bremner <david@tethera.net>
Tue, 11 Feb 2014 02:45:28 +0000 (22:45 -0400)
The definitions of Thread, output_with_separator, and print_view were
between the main argparse and view-printing code.  Group them together
with our existing read_config at the top of the module, which makes
for easier reading in the main section.

I also:

* Made 'headers' a print_view argument instead of a module-level
  global.  The list -> tuple conversion avoids having a mutable
  default argument, which makes some people jumpy ;).

* Made 'db' a print_view argument instead of relying on the global
  namespace to access it from print_view.


No differences found