Commits

Anonymous committed dd984b4

Fix for json/simplejson import

Comments (0)

Files changed (1)

mercurial_reviewboard/reviewboard.py

 import mimetools
 import os
 import urllib2
-import simplejson
 import mercurial.ui
 import datetime
 from urlparse import urljoin, urlparse
 
+try:
+    import simplejson
+    simplejson.loads("{}")
+except ImportError:
+    import json as simplejson
+
 class APIError(Exception):
     pass