diff options
| author | Ramiro Morales <cramm0@gmail.com> | 2011-10-20 17:21:10 +0000 |
|---|---|---|
| committer | Ramiro Morales <cramm0@gmail.com> | 2011-10-20 17:21:10 +0000 |
| commit | b3b904994209bf568620def764e6a8e51de9ecb0 (patch) | |
| tree | 0a9017cf18ede19818c5f645e7b431ef6edcc72f /django/utils/simplejson | |
| parent | 1452cecd154c9a77af85e6a5b09e334797779be4 (diff) | |
Fixed #17071 -- Made sure we report the right version of system-level {simple,}json module.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17018 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/simplejson')
| -rw-r--r-- | django/utils/simplejson/__init__.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/utils/simplejson/__init__.py b/django/utils/simplejson/__init__.py index 9a8c5a348a..a9418da6c6 100644 --- a/django/utils/simplejson/__init__.py +++ b/django/utils/simplejson/__init__.py @@ -113,6 +113,8 @@ try: hasattr(simplejson, '_speedups')): from simplejson import * use_system_version = True + # Make sure we copy over the version. See #17071 + __version__ = simplejson.__version__ except ImportError: pass @@ -126,6 +128,8 @@ if not use_system_version: JSONDecoder use_system_version = True + # Make sure we copy over the version. See #17071 + __version__ = json.__version__ except (ImportError, NameError): pass |
