1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

Lazier evaluation for dependencies

This commit is contained in:
Lauri Võsandi 2017-04-13 22:37:31 +00:00
parent 1c5913ee3b
commit bc43fdc402

View File

@ -6,7 +6,6 @@ import os
import subprocess import subprocess
import types import types
from datetime import date, time, datetime, timedelta from datetime import date, time, datetime, timedelta
from certidude.auth import User
from urlparse import urlparse from urlparse import urlparse
logger = logging.getLogger("api") logger = logging.getLogger("api")
@ -54,6 +53,7 @@ def event_source(func):
class MyEncoder(json.JSONEncoder): class MyEncoder(json.JSONEncoder):
def default(self, obj): def default(self, obj):
from certidude.auth import User
if isinstance(obj, ipaddress._IPAddressBase): if isinstance(obj, ipaddress._IPAddressBase):
return str(obj) return str(obj)
if isinstance(obj, set): if isinstance(obj, set):