email: use absolute imports in the pgp_mime.email module.
authorW. Trevor King <wking@tremily.us>
Fri, 31 Aug 2012 17:46:29 +0000 (13:46 -0400)
committerW. Trevor King <wking@tremily.us>
Fri, 31 Aug 2012 17:46:29 +0000 (13:46 -0400)
commit60f1b37625e76180843080230bb48e05988bc341
tree71cd5df7bc1b1616d87f3d2afe15ab44bee3cd1d
parent90349715a1c76b9c091cb97a1f227911fea86937
email: use absolute imports in the pgp_mime.email module.

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
pgp_mime/email.py