Skip to content

Commit

Permalink
Fixed #17071 -- Made sure we report the right version of system-level…
Browse files Browse the repository at this point in the history
… {simple,}json module.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
ramiro committed Oct 20, 2011
1 parent 1452cec commit b3b9049
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions django/utils/simplejson/__init__.py
Expand Up @@ -113,6 +113,8 @@
hasattr(simplejson, '_speedups')): hasattr(simplejson, '_speedups')):
from simplejson import * from simplejson import *
use_system_version = True use_system_version = True
# Make sure we copy over the version. See #17071
__version__ = simplejson.__version__
except ImportError: except ImportError:
pass pass


Expand All @@ -126,6 +128,8 @@
JSONDecoder JSONDecoder


use_system_version = True use_system_version = True
# Make sure we copy over the version. See #17071
__version__ = json.__version__
except (ImportError, NameError): except (ImportError, NameError):
pass pass


Expand Down

0 comments on commit b3b9049

Please sign in to comment.