community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1708159 - /comdev/reporter.apache.org/trunk/site/jiraversions.py
Date Mon, 12 Oct 2015 16:44:24 GMT
Author: sebb
Date: Mon Oct 12 16:44:24 2015
New Revision: 1708159

URL: http://svn.apache.org/viewvc?rev=1708159&view=rev
Log:
Easier to read

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

Modified: comdev/reporter.apache.org/trunk/site/jiraversions.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/jiraversions.py?rev=1708159&r1=1708158&r2=1708159&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/jiraversions.py (original)
+++ comdev/reporter.apache.org/trunk/site/jiraversions.py Mon Oct 12 16:44:24 2015
@@ -69,7 +69,8 @@ if jiraname and user and (isMember(user)
             f.close()
     except Exception as e:
         # Use json.dumps to ensure that quotes are handled correctly
-        print("Content-Type: application/json\r\n\r\n%s\r\n" % json.dumps({"status": str(e)}))
+        print("Content-Type: application/json\r\n\r\n")
+        print(json.dumps({"status": str(e)}))
     else:
         print("Content-Type: application/json\r\n\r\n")
         print(json.dumps({'status': 'Fetched', 'versions': rdata, 'added': added}, indent=1))



Mime
View raw message