From bc43fdc4029b847eee826016a799e0ed05c090bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Thu, 13 Apr 2017 22:37:31 +0000 Subject: [PATCH] Lazier evaluation for dependencies --- certidude/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/certidude/decorators.py b/certidude/decorators.py index 42e65c1..49bebcd 100644 --- a/certidude/decorators.py +++ b/certidude/decorators.py @@ -6,7 +6,6 @@ import os import subprocess import types from datetime import date, time, datetime, timedelta -from certidude.auth import User from urlparse import urlparse logger = logging.getLogger("api") @@ -54,6 +53,7 @@ def event_source(func): class MyEncoder(json.JSONEncoder): def default(self, obj): + from certidude.auth import User if isinstance(obj, ipaddress._IPAddressBase): return str(obj) if isinstance(obj, set):