community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1838717 - in /comdev/reporter.apache.org: branches/TEST_INSTALL/scripts/readjira.py trunk/scripts/readjira.py
Date Thu, 23 Aug 2018 12:06:28 GMT
Author: sebb
Date: Thu Aug 23 12:06:28 2018
New Revision: 1838717

URL: http://svn.apache.org/viewvc?rev=1838717&view=rev
Log:
Don't write an empty file

Modified:
    comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py
    comdev/reporter.apache.org/trunk/scripts/readjira.py

Modified: comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py?rev=1838717&r1=1838716&r2=1838717&view=diff
==============================================================================
--- comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py (original)
+++ comdev/reporter.apache.org/branches/TEST_INSTALL/scripts/readjira.py Thu Aug 23 12:06:28
2018
@@ -94,9 +94,7 @@ def getJIRAS(project):
         if "does not exist for the field 'project'" in response:
             print("Removing %s" % file)
             os.remove(file)
-        else:
-            with open(file, "w") as f:
-                json.dump([0,0,None], f, indent=1, sort_keys=True)
+        # Don't write an empty file
         handleError()
         return 0,0, None
 

Modified: comdev/reporter.apache.org/trunk/scripts/readjira.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/readjira.py?rev=1838717&r1=1838716&r2=1838717&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/readjira.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/readjira.py Thu Aug 23 12:06:28 2018
@@ -94,9 +94,7 @@ def getJIRAS(project):
         if "does not exist for the field 'project'" in response:
             print("Removing %s" % file)
             os.remove(file)
-        else:
-            with open(file, "w") as f:
-                json.dump([0,0,None], f, indent=1, sort_keys=True)
+        # Don't write an empty file
         handleError()
         return 0,0, None
 



Mime
View raw message