[LNT] r307700 - Use simplejson when we have it
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 13:13:36 PDT 2017
Author: cmatthews
Date: Tue Jul 11 13:13:36 2017
New Revision: 307700
URL: http://llvm.org/viewvc/llvm-project?rev=307700&view=rev
Log:
Use simplejson when we have it
Some people use simplejson, and when they do, Flask uses it
automatically. We need to do that as well when we override their class.
Modified:
lnt/trunk/lnt/server/ui/app.py
Modified: lnt/trunk/lnt/server/ui/app.py
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/app.py?rev=307700&r1=307699&r2=307700&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/app.py (original)
+++ lnt/trunk/lnt/server/ui/app.py Tue Jul 11 13:13:36 2017
@@ -1,5 +1,8 @@
import StringIO
-import json
+try:
+ import simplejson as json
+except ImportError:
+ import json
import logging
import logging.handlers
import sys
More information about the llvm-commits
mailing list