community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1867079 - /comdev/reporter.apache.org/trunk/scripts/pdata.py
Date Tue, 17 Sep 2019 21:32:30 GMT
Author: sebb
Date: Tue Sep 17 21:32:30 2019
New Revision: 1867079

URL: http://svn.apache.org/viewvc?rev=1867079&view=rev
Log:
Avoid name redefine

Modified:
    comdev/reporter.apache.org/trunk/scripts/pdata.py

Modified: comdev/reporter.apache.org/trunk/scripts/pdata.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/pdata.py?rev=1867079&r1=1867078&r2=1867079&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/pdata.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/pdata.py Tue Sep 17 21:32:30 2019
@@ -64,9 +64,8 @@ ldapmap = {
 }
 
 jirapass = ""
-with open("/usr/local/etc/tokens/jira.txt", "r") as f:
-    jirapass = f.read().strip()
-    f.close()
+with open("/usr/local/etc/tokens/jira.txt", "r") as jf:
+    jirapass = jf.read().strip()
 
 def readJson(filename, *default):
     """Read a JSON file. If the read fails, return the default (if any) otherwise return
the exception"""



Mime
View raw message