Commits

martin.v.loewis  committed d7a0ae8

Fall back to simplejson.
Mark executable.

  • Participants
  • Parent commits 2aed42c

Comments (0)

Files changed (1)

File scripts/suggest.py

 #!/usr/bin/python
 # WSGI server to implement search suggestions
-import ConfigParser, psycopg2, os, urllib, json
+import ConfigParser, psycopg2, os, urllib
+
+try:
+    import json
+except ImportError:
+    import simplejson as json
 
 # copied from indexer_common
 STOPWORDS = set([