python-ox/ox/utils.py
2010-11-23 10:23:40 +01:00

16 lines
325 B
Python

# -*- coding: utf-8 -*-
# vi:si:et:sw=4:sts=4:ts=4
try:
from django.utils.datetime_safe import datetime
except ImportError:
from datetime import datetime
try:
import simplejson as json
except ImportError:
try:
import json
except ImportError:
from django.utils import simplejson as json