[LNT] r307674 - Fix unexpected keyword argument 'iterable_as_array'
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 11 10:00:02 PDT 2017
Author: cmatthews
Date: Tue Jul 11 10:00:02 2017
New Revision: 307674
URL: http://llvm.org/viewvc/llvm-project?rev=307674&view=rev
Log:
Fix unexpected keyword argument 'iterable_as_array'
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=307674&r1=307673&r2=307674&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/app.py (original)
+++ lnt/trunk/lnt/server/ui/app.py Tue Jul 11 10:00:02 2017
@@ -46,6 +46,10 @@ class RootSlashPatchMiddleware(object):
class LNTObjectJSONEncoder(json.JSONEncoder):
"""Take SQLAlchemy objects and jsonify them. If the object has an __json__ method, use that instead."""
+
+ def __init__(self, *args, **kwargs):
+ super(LNTObjectJSONEncoder, self).__init__(*args, **kwargs)
+
def default(self, obj):
if hasattr(obj, '__json__'):
return obj.__json__()
More information about the llvm-commits
mailing list