[Pypi-checkins] r820 - trunk/pypi
richard
python-checkins at python.org
Sun Jul 25 09:49:37 CEST 2010
Author: richard
Date: Sun Jul 25 09:49:37 2010
New Revision: 820
Modified:
trunk/pypi/webui.py
Log:
simplejson compat
Modified: trunk/pypi/webui.py
==============================================================================
--- trunk/pypi/webui.py (original)
+++ trunk/pypi/webui.py Sun Jul 25 09:49:37 2010
@@ -5,8 +5,10 @@
from zope.pagetemplate.pagetemplatefile import PageTemplateFile
from distutils.util import rfc822_escape
from distutils2.metadata import DistributionMetadata
-import json
-
+try:
+ import json
+except:
+ import simplejson as json
try:
import psycopg2
OperationalError = psycopg2.OperationalError
More information about the Pypi-checkins
mailing list