From b16160b60897a748415e80bbfeb87af495181b93 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 15 Oct 2017 16:26:58 +0300 Subject: [PATCH] Cleanup: Fix flake8 E701 multiple statements on one line (colon) --- mimedecode.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mimedecode.py b/mimedecode.py index caa8533..0683947 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -20,7 +20,8 @@ def version(exit=1): sys.stdout.write("""\ Broytman mimedecode.py version %s, %s """ % (__version__, __copyright__)) - if exit: sys.exit(0) + if exit: + sys.exit(0) def usage(code=0, errormsg=''): @@ -356,7 +357,8 @@ def _save_message(msg, outstring, save_headers=False, save_body=False): fname = str(g.save_counter) + fname if '.' not in fname: ext = _guess_extension(msg.get_content_type()) - if ext: fname += ext + if ext: + fname += ext global output save_output = output -- 2.39.5