]> git.phdru.name Git - mimedecode.git/commitdiff
Cleanup: Fix flake8 E701 multiple statements on one line (colon)
authorOleg Broytman <phd@phdru.name>
Sun, 15 Oct 2017 13:26:58 +0000 (16:26 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 15 Oct 2017 15:30:40 +0000 (18:30 +0300)
mimedecode.py

index caa85330a442ddf8364d427dea724695a8426cf7..068394761412d2474c7b17301494a960397ee35e 100755 (executable)
@@ -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