comparison oembed/core.py @ 679:89b240fe9297

For Django 1.5.2: import json; django.utils.simplejson is deprecated.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Aug 2013 20:14:33 -0500
parents ee87ea74d46b
children 344f7914d421
comparison
equal deleted inserted replaced
678:38a198ea8c61 679:89b240fe9297
1 """ 1 """
2 This module contains core functionality for the oembed application. 2 This module contains core functionality for the oembed application.
3
3 """ 4 """
4 from __future__ import with_statement 5 import json
5 import urllib 6 import urllib
6 import urllib2 7 import urllib2
7 import gzip 8 import gzip
8 try: 9 try:
9 from cStringIO import StringIO 10 from cStringIO import StringIO
10 except ImportError: 11 except ImportError:
11 from StringIO import StringIO 12 from StringIO import StringIO
12 13
13 import django.utils.simplejson as json
14 14
15 15
16 USER_AGENT = 'gremmies python oembed' 16 USER_AGENT = 'gremmies python oembed'
17 17
18 18