mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 08:15: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 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):
|
||||
|
Loading…
Reference in New Issue
Block a user