[elbe-devel] [PATCH 2/5] Python3: fix the relative imports

Christian Teklenborg chris at linutronix.de
Fri Jan 10 15:45:59 CET 2020


The syntax for relative imports has changed in Python3. There has to be a dot
in front of them.

Signed-off-by: Christian Teklenborg <chris at linutronix.de>
---
 elbepack/daemons/soap/__init__.py       | 2 +-
 elbepack/daemons/soap/authentication.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/elbepack/daemons/soap/__init__.py b/elbepack/daemons/soap/__init__.py
index 7b128c78..ce0a28eb 100644
--- a/elbepack/daemons/soap/__init__.py
+++ b/elbepack/daemons/soap/__init__.py
@@ -8,7 +8,7 @@ from __future__ import print_function
 
 import sys
 
-from esoap import ESoap
+from .esoap import ESoap
 from elbepack.projectmanager import ProjectManager
 
 from beaker.middleware import SessionMiddleware
diff --git a/elbepack/daemons/soap/authentication.py b/elbepack/daemons/soap/authentication.py
index 76946cbc..6d2850ff 100644
--- a/elbepack/daemons/soap/authentication.py
+++ b/elbepack/daemons/soap/authentication.py
@@ -6,7 +6,7 @@
 
 from functools import wraps
 
-from faults import SoapElbeNotLoggedIn, SoapElbeNotAuthorized
+from .faults import SoapElbeNotLoggedIn, SoapElbeNotAuthorized
 
 
 def authenticated_uid(func):
-- 
2.20.1




More information about the elbe-devel mailing list