Browse Source

Add missing absolute imports

Unrud 7 năm trước cách đây
mục cha
commit
2e9600c71f
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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