diff -ur simplejson-1.9.2/simplejson/__init__.py simplejson/__init__.py
old
|
new
|
|
108 | 108 | if __name__ == '__main__': |
109 | 109 | import warnings |
110 | 110 | warnings.warn('python -msimplejson is deprecated, use python -msiplejson.tool', DeprecationWarning) |
111 | | from simplejson.decoder import JSONDecoder |
112 | | from simplejson.encoder import JSONEncoder |
| 111 | from django.utils.simplejson.decoder import JSONDecoder |
| 112 | from django.utils.simplejson.encoder import JSONEncoder |
113 | 113 | else: |
114 | 114 | from decoder import JSONDecoder |
115 | 115 | from encoder import JSONEncoder |
Only in simplejson-1.9.2/simplejson: _speedups.so
diff -ur simplejson-1.9.2/simplejson/decoder.py simplejson/decoder.py
old
|
new
|
|
4 | 4 | import re |
5 | 5 | import sys |
6 | 6 | |
7 | | from simplejson.scanner import Scanner, pattern |
| 7 | from django.utils.simplejson.scanner import Scanner, pattern |
8 | 8 | try: |
9 | | from simplejson._speedups import scanstring as c_scanstring |
| 9 | from django.utils.simplejson._speedups import scanstring as c_scanstring |
10 | 10 | except ImportError: |
11 | 11 | pass |
12 | 12 | |
diff -ur simplejson-1.9.2/simplejson/encoder.py simplejson/encoder.py
old
|
new
|
|
4 | 4 | import re |
5 | 5 | |
6 | 6 | try: |
7 | | from simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii |
| 7 | from django.utils.simplejson._speedups import encode_basestring_ascii as c_encode_basestring_ascii |
8 | 8 | except ImportError: |
9 | 9 | pass |
10 | 10 | |
diff -ur simplejson-1.9.2/simplejson/tool.py simplejson/tool.py
old
|
new
|
|
12 | 12 | Note that the JSON produced by this module's default settings |
13 | 13 | is a subset of YAML, so it may be used as a serializer for that as well. |
14 | 14 | """ |
15 | | import simplejson |
| 15 | import django.utils.simplejson |
16 | 16 | |
17 | 17 | # |
18 | 18 | # Pretty printer: |