Cleaned up some of the dependencies, added conditional mailcap-fix dep

This commit is contained in:
Michael Lazar
2017-04-09 19:59:59 -07:00
parent 21f998c043
commit aefbc4e985
5 changed files with 55 additions and 39 deletions

View File

@@ -20,12 +20,17 @@ import six
#pylint: disable=import-error
from six.moves.urllib.parse import quote
from kitchen.text.display import textual_width_chop
from mailcap_fix import mailcap
from . import exceptions
from . import mime_parsers
from .objects import LoadScreen, Color
try:
# Fix only needed for versions prior to python 3.6
from mailcap_fix import mailcap
except ImportError:
import mailcap
try:
# Added in python 3.4+
from html import unescape