community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1858359 - in /comdev/reporter.apache.org/trunk/site: addrelease.py jiraversions.py
Date Mon, 29 Apr 2019 10:35:50 GMT
Author: sebb
Date: Mon Apr 29 10:35:50 2019
New Revision: 1858359

URL: http://svn.apache.org/viewvc?rev=1858359&view=rev
Log:
Pylint: unused etc

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

Modified: comdev/reporter.apache.org/trunk/site/addrelease.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/addrelease.py?rev=1858359&r1=1858358&r2=1858359&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/addrelease.py (original)
+++ comdev/reporter.apache.org/trunk/site/addrelease.py Mon Apr 29 10:35:50 2019
@@ -1,8 +1,8 @@
 #!/usr/bin/env python
-import os, sys, re, json, subprocess, urllib, datetime, time
-import base64, urllib2, cgi
+import os, re, json, subprocess
+import cgi
 
-form = cgi.FieldStorage();
+form = cgi.FieldStorage()
 user = os.environ['HTTP_X_AUTHENTICATED_USER'] if 'HTTP_X_AUTHENTICATED_USER' in os.environ
else "nobody"
 date = int(form['date'].value) if ('date' in form and len(form['date'].value) > 0) else
None
 version = form['version'].value.strip() if ('version' in form and len(form['version'].value.strip())
> 0) else None
@@ -36,7 +36,7 @@ def getReleaseData(committee):
         with open("/var/www/reporter.apache.org/data/releases/%s.json" % committee, "r")
as f:
             x = json.loads(f.read())
             f.close()
-        return x;
+        return x
     except:
         return {}
 

Modified: comdev/reporter.apache.org/trunk/site/jiraversions.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/jiraversions.py?rev=1858359&r1=1858358&r2=1858359&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/jiraversions.py (original)
+++ comdev/reporter.apache.org/trunk/site/jiraversions.py Mon Apr 29 10:35:50 2019
@@ -6,9 +6,9 @@
    TODO: cache the LDAP query responses or use the appropriate json files instead
 """
 
-import os, sys, json, urllib2, re, time, base64, cgi, subprocess, calendar
+import os, json, urllib2, re, time, base64, cgi, subprocess, calendar
 
-form = cgi.FieldStorage();
+form = cgi.FieldStorage()
 user = os.environ['HTTP_X_AUTHENTICATED_USER'] if 'HTTP_X_AUTHENTICATED_USER' in os.environ
else None
 project = form['project'].value if ('project' in form and len(form['project'].value) >
0) else None
 jiraname = form['jiraname'].value if ('jiraname' in form and len(form['jiraname'].value)
> 0) else None



Mime
View raw message