From 7e11e57ee4f9fc1dc3c967c9b2d26038a7727f72 Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Fri, 19 Aug 2022 21:24:55 +0300 Subject: Delete unused function and imports. * wqflask/wqflask/database.py: Remove unused sqlalchemy imports. (read_from_pyfile): Delete it. --- wqflask/wqflask/database.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'wqflask') diff --git a/wqflask/wqflask/database.py b/wqflask/wqflask/database.py index f0ce0a77..d8cc5de9 100644 --- a/wqflask/wqflask/database.py +++ b/wqflask/wqflask/database.py @@ -8,16 +8,6 @@ import importlib import MySQLdb -from sqlalchemy import create_engine -from sqlalchemy.orm import scoped_session, sessionmaker -from sqlalchemy.ext.declarative import declarative_base - -def read_from_pyfile(pyfile, setting): - orig_sys_path = sys.path[:] - sys.path.insert(0, os.path.dirname(pyfile)) - module = importlib.import_module(os.path.basename(pyfile).strip(".py")) - sys.path = orig_sys_path[:] - return module.__dict__.get(setting) def sql_uri(): """Read the SQL_URI from the environment or settings file.""" -- cgit v1.2.3