From 3eb76865c7fd23c300d8d60c42c74039532587c3 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 15 Oct 2017 16:26:58 +0300 Subject: [PATCH] Cleanup: Fix flake8 E401 multiple imports on one line --- mimedecode.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mimedecode.py b/mimedecode.py index 69af1ac..3f5879e 100755 --- a/mimedecode.py +++ b/mimedecode.py @@ -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: -- 2.39.5