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

Benedikt Spranger b.spranger at linutronix.de
Fri Feb 23 16:56:46 CET 2024


Am Mon, 12 Feb 2024 13:01:23 +0100
schrieb Thomas Weißschuh <thomas.weissschuh at linutronix.de>:

> 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
Alphabethical input order?

    Bene


More information about the elbe-devel mailing list