From f666f7a88e5f6d7d43548656a938452d28153ae3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20tom=20W=C3=B6rden?= <h.tomwoerden@indiscale.com>
Date: Tue, 26 Sep 2023 22:04:24 +0200
Subject: [PATCH] better __init__s

---
 src/caosdb/__init__.py                           | 4 ++--
 src/caosdb/common/__init__.py                    | 4 ++--
 src/caosdb/connection/__init__.py                | 4 ++--
 src/caosdb/connection/authentication/__init__.py | 4 ++--
 src/caosdb/utils/__init__.py                     | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

diff --git a/src/caosdb/__init__.py b/src/caosdb/__init__.py
index a4c24dc4..ee00f585 100644
--- a/src/caosdb/__init__.py
+++ b/src/caosdb/__init__.py
@@ -1,6 +1,6 @@
 
-from linkahead.__init__ import *
+from linkahead import *
 from warnings import warn
 
-warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.__init__`. Using the"
+warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead`. Using the"
       " old name, starting with caosdb, is deprecated."), DeprecationWarning)
diff --git a/src/caosdb/common/__init__.py b/src/caosdb/common/__init__.py
index d6bc5860..3d765c2a 100644
--- a/src/caosdb/common/__init__.py
+++ b/src/caosdb/common/__init__.py
@@ -1,6 +1,6 @@
 
-from linkahead.common.__init__ import *
+from linkahead.common import *
 from warnings import warn
 
-warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.common.__init__`. Using the"
+warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.common`. Using the"
       " old name, starting with caosdb, is deprecated."), DeprecationWarning)
diff --git a/src/caosdb/connection/__init__.py b/src/caosdb/connection/__init__.py
index 15ec0407..bc9dc0cf 100644
--- a/src/caosdb/connection/__init__.py
+++ b/src/caosdb/connection/__init__.py
@@ -1,6 +1,6 @@
 
-from linkahead.connection.__init__ import *
+from linkahead.connection import *
 from warnings import warn
 
-warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.connection.__init__`. Using the"
+warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.connection`. Using the"
       " old name, starting with caosdb, is deprecated."), DeprecationWarning)
diff --git a/src/caosdb/connection/authentication/__init__.py b/src/caosdb/connection/authentication/__init__.py
index 65f7ad10..cad5725d 100644
--- a/src/caosdb/connection/authentication/__init__.py
+++ b/src/caosdb/connection/authentication/__init__.py
@@ -1,6 +1,6 @@
 
-from linkahead.connection.authentication.__init__ import *
+from linkahead.connection.authentication import *
 from warnings import warn
 
-warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.connection.authentication.__init__`. Using the"
+warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.connection.authentication`. Using the"
       " old name, starting with caosdb, is deprecated."), DeprecationWarning)
diff --git a/src/caosdb/utils/__init__.py b/src/caosdb/utils/__init__.py
index 29e1afa0..7401e177 100644
--- a/src/caosdb/utils/__init__.py
+++ b/src/caosdb/utils/__init__.py
@@ -1,6 +1,6 @@
 
-from linkahead.utils.__init__ import *
+from linkahead.utils import *
 from warnings import warn
 
-warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.utils.__init__`. Using the"
+warn(("CaosDB was renamed to LinkAhead. Please import this library as `import linkahead.utils`. Using the"
       " old name, starting with caosdb, is deprecated."), DeprecationWarning)
-- 
GitLab