python-ox/ox/utils.py

17 lines
325 B
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
try:
from django.utils.datetime_safe import datetime
2010-11-23 09:23:40 +00:00
except ImportError:
from datetime import datetime
2010-07-28 13:04:43 +00:00
try:
import simplejson as json
2010-11-23 09:23:40 +00:00
except ImportError:
try:
import json
except ImportError:
from django.utils import simplejson as json
2010-07-28 13:04:43 +00:00