Code

Ticket #9266: use_system_simplejson.diff

File use_system_simplejson.diff, 380 bytes (added by paulegan, 6 years ago)

Small patch to use system installed simplejson package, in preference to django's bundled version

Line 
1Index: django/utils/__init__.py
2===================================================================
3--- django/utils/__init__.py    (revision 9110)
4+++ django/utils/__init__.py    (working copy)
5@@ -0,0 +1,5 @@
6+# use system installed simplejson package, in preference to django's bundled version
7+try:
8+    simplejson = __import__('simplejson', level=0)
9+except ImportError:
10+    pass