From ea5db32344090449eca52af7bb21289faad2e9e7 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Tue, 13 Dec 2011 05:56:14 +0100 Subject: [PATCH 1/1] python: Use importlib for python3. --- python3/ashd/wsgidir.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python3/ashd/wsgidir.py b/python3/ashd/wsgidir.py index 031952b..16ca1b5 100644 --- a/python3/ashd/wsgidir.py +++ b/python3/ashd/wsgidir.py @@ -129,7 +129,7 @@ def addext(ext, handler): p = handler.rindex('.') mname = handler[:p] hname = handler[p + 1:] - mod = __import__(mname, fromlist = ["dummy"]) + mod = importlib.import_module(mname) exts[ext] = getattr(mod, hname) def application(env, startreq): -- 2.11.0