You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/10/12 16:15:42 UTC

svn commit: r1708125 - /comdev/reporter.apache.org/trunk/site/getjson.py

Author: sebb
Date: Mon Oct 12 14:15:42 2015
New Revision: 1708125

URL: http://svn.apache.org/viewvc?rev=1708125&view=rev
Log:
Fix up default handling in readJson

Modified:
    comdev/reporter.apache.org/trunk/site/getjson.py

Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1708125&r1=1708124&r2=1708125&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Mon Oct 12 14:15:42 2015
@@ -83,7 +83,7 @@ def readJson(filename, *default):
         if default == None:
             raise
         else:
-            return default
+            return default[0] # only want first arg
     return data