[elbe-devel] [PATCH 1/5] elbepack: use non-deprecated import

Thomas Weißschuh thomas.weissschuh at linutronix.de
Tue Mar 5 16:11:55 CET 2024


declarative_base moved into the sqlalchemy core in 1.40 and should be
imported from there.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/db.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/elbepack/db.py b/elbepack/db.py
index b0145cc41353..471e7b168852 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -30,8 +30,7 @@ from sqlalchemy import (
     create_engine,
 )
 from sqlalchemy.exc import OperationalError
-from sqlalchemy.ext.declarative import declarative_base
-from sqlalchemy.orm import relationship, scoped_session, sessionmaker
+from sqlalchemy.orm import declarative_base, relationship, scoped_session, sessionmaker
 from sqlalchemy.orm.exc import NoResultFound
 
 
-- 
2.44.0



More information about the elbe-devel mailing list