From 0cbc3e4f41ae1f95cef509ae8014774101550596 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Feb 07 2020 16:35:25 +0000 Subject: Support newer werkzeug The version 1.0 of werkzeug has removed from of its import from the top level module, so now we need to look for them in their submodules. Signed-off-by: Pierre-Yves Chibon --- diff --git a/mdapi/__init__.py b/mdapi/__init__.py index 3ac7ab7..bf173fe 100644 --- a/mdapi/__init__.py +++ b/mdapi/__init__.py @@ -26,7 +26,7 @@ import logging import os import aiosqlite -import werkzeug +import werkzeug.utils from aiohttp import web @@ -46,7 +46,7 @@ from mdapi.db import ( CONFIG = dict() -obj = werkzeug.import_string('mdapi.default_config') +obj = werkzeug.utils.import_string('mdapi.default_config') for key in dir(obj): if key.isupper(): CONFIG[key] = getattr(obj, key)