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