]> git.phdru.name Git - mimedecode.git/commitdiff
Cleanup: Fix flake8 E401 multiple imports on one line
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:16:56 +0000 (18:16 +0300)
mimedecode.py

index 69af1ac984ffa78e71818f38cb5009c97a098be4..3f5879ef4496d7a64cdc89026dd328007615b6d6 100755 (executable)
@@ -1,10 +1,13 @@
 #! /usr/bin/env python
 """Decode MIME message"""
 
-import sys, os
+import os
 import subprocess
+import sys
+
 from mimedecode_version import __version__, \
     __author__, __copyright__, __license__
+
 if sys.version_info[0] >= 3:
     # Replace email.message._formatparam with _formatparam from Python 2.7
     # to avoid re-encoding non-ascii params.
@@ -222,7 +225,8 @@ caps = None  # Globally stored mailcap database; initialized only if needed
 def decode_body(msg, s):
     "Decode body to plain text using first copiousoutput filter from mailcap"
 
-    import mailcap, tempfile
+    import mailcap
+    import tempfile
 
     global caps
     if caps is None: