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

Thomas Weißschuh thomas.weissschuh at linutronix.de
Mon Feb 12 13:01:23 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 db46672e87d6..592c590aa850 100644
--- a/elbepack/db.py
+++ b/elbepack/db.py
@@ -33,8 +33,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 relationship, scoped_session, sessionmaker, declarative_base
 from sqlalchemy.orm.exc import NoResultFound
 
 
-- 
2.43.1



More information about the elbe-devel mailing list