瀏覽代碼

Add missing absolute imports

Unrud 7 年之前
父節點
當前提交
2e9600c71f
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      radicale/storage.py

+ 2 - 2
radicale/storage.py

@@ -48,7 +48,7 @@ import vobject
 
 if sys.version_info >= (3, 5):
     # HACK: Avoid import cycle for Python < 3.5
-    from . import xmlutils
+    from radicale import xmlutils
 
 if os.name == "nt":
     import ctypes
@@ -97,7 +97,7 @@ def load(configuration, logger):
     if sys.version_info < (3, 5):
         # HACK: Avoid import cycle for Python < 3.5
         global xmlutils
-        from . import xmlutils
+        from radicale import xmlutils
     storage_type = configuration.get("storage", "type")
     if storage_type == "multifilesystem":
         collection_class = Collection