mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-23 00:25:18 +00:00
Lazier evaluation for dependencies
This commit is contained in:
parent
1c5913ee3b
commit
bc43fdc402
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user