[PATCH 2/3] parsearchive: Fix import bug

Stephen Finucane stephen.finucane at intel.com
Tue Dec 22 03:21:42 AEDT 2015


A bug was introduced in the Python 3 port - the 'bin' folder is not a
module and therefore relative imports should not be used. Resolve this.

Signed-off-by: Stephen Finucane <stephen.finucane at intel.com>
---
 patchwork/bin/parsearchive.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/patchwork/bin/parsearchive.py b/patchwork/bin/parsearchive.py
index 5ded8ef..f879215 100755
--- a/patchwork/bin/parsearchive.py
+++ b/patchwork/bin/parsearchive.py
@@ -29,7 +29,7 @@ import mailbox
 
 import django
 
-from . import parsemail
+from patchwork.bin import parsemail
 
 VERBOSITY_LEVELS = {
     'debug': logging.DEBUG,
-- 
2.0.0



More information about the Patchwork mailing list