Skip to content

Commit

Permalink
100% coverage for utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Jul 26, 2018
1 parent fec8a2f commit fe86fcd
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/zope/mimetype/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
"""Utility helpers
"""
try:
from email.Charset import Charset
except ImportError:
# Py3: Changed package name.
from email.charset import Charset
except ImportError: # pragma: no cover
# Py2: Old name. (Note, on case-insensitive filesystems,
# we can import with either. This complicates coverage.)
from email.Charset import Charset


def decode(s, charset_name):
Expand Down

0 comments on commit fe86fcd

Please sign in to comment.