From: Oleg Broytman Date: Sun, 15 Oct 2017 13:26:58 +0000 (+0300) Subject: Cleanup: Fix flake8 E701 multiple statements on one line (colon) X-Git-Tag: 2.8.0~17 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=b16160b60897a748415e80bbfeb87af495181b93;p=mimedecode.git Cleanup: Fix flake8 E701 multiple statements on one line (colon) --- 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