This fixes:
Traceback (most recent call last):
File "/usr/lib64/python2.7/site-packages/nose/loader.py", line 390, in loadTestsFromName
addr.filename, addr.module)
File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 39, in importFromPath
return self.importFromDir(dir_path, fqname)
File "/usr/lib64/python2.7/site-packages/nose/importer.py", line 86, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File ".../pgp_mime/__init__.py", line 33, in <module>
from .pgp import sign, encrypt, sign_and_encrypt, decrypt, verify
File ".../pgp_mime/pgp.py", line 4, in <module>
from email import message_from_bytes as _message_from_bytes
ImportError: cannot import name message_from_bytes
# You should have received a copy of the GNU General Public License along with
# pgp-mime. If not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import
+
from email.header import decode_header as _decode_header
from email.message import Message as _Message
from email.mime.text import MIMEText as _MIMEText