From 2f67fbf69afce38f43de781404b17631bda5b15f Mon Sep 17 00:00:00 2001 From: Wilhelm Westermark Date: Thu, 19 Aug 2021 20:21:19 +0200 Subject: [PATCH] Updated for python 3.9 compat --- parts/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parts/server.py b/parts/server.py index caa9e4a..54c43e1 100644 --- a/parts/server.py +++ b/parts/server.py @@ -324,7 +324,8 @@ def connect(user, password, db, host='localhost', port=5432): con = sqlalchemy.create_engine(url, client_encoding='utf8') # We then bind the connection to MetaData() - meta = sqlalchemy.MetaData(bind=con, reflect=True) + meta = sqlalchemy.MetaData(bind=con) + meta.reflect(bind=con) return con, meta