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 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):