logview: minor pep8 fixups
Signed-off-by: Francois Andrieu <naolwen@gmail.com>
This commit is contained in:
parent
3696752d08
commit
777637f7a6
1 changed files with 17 additions and 19 deletions
|
@ -49,6 +49,7 @@ def parse_args(args):
|
||||||
opts.search_terms = search_terms
|
opts.search_terms = search_terms
|
||||||
return opts, args
|
return opts, args
|
||||||
|
|
||||||
|
|
||||||
def search_logs(opts, logfiles):
|
def search_logs(opts, logfiles):
|
||||||
msg = ''
|
msg = ''
|
||||||
for fn in sorted(logfiles):
|
for fn in sorted(logfiles):
|
||||||
|
@ -93,7 +94,6 @@ def search_logs(opts, logfiles):
|
||||||
msg += json.dumps(slurp, indent=4)
|
msg += json.dumps(slurp, indent=4)
|
||||||
msg += '\n'
|
msg += '\n'
|
||||||
|
|
||||||
|
|
||||||
return msg
|
return msg
|
||||||
|
|
||||||
|
|
||||||
|
@ -113,7 +113,5 @@ def main(args):
|
||||||
print(msg)
|
print(msg)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
sys.exit(main(sys.argv[1:]))
|
sys.exit(main(sys.argv[1:]))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue