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 2023/04/05 18:10:18 UTC

svn commit: r1908990 - /comdev/reporter.apache.org/trunk/scripts/scandist.py

Author: sebb
Date: Wed Apr  5 18:10:18 2023
New Revision: 1908990

URL: http://svn.apache.org/viewvc?rev=1908990&view=rev
Log:
Code tidy

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

Modified: comdev/reporter.apache.org/trunk/scripts/scandist.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/scripts/scandist.py?rev=1908990&r1=1908989&r2=1908990&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/scripts/scandist.py (original)
+++ comdev/reporter.apache.org/trunk/scripts/scandist.py Wed Apr  5 18:10:18 2023
@@ -193,10 +193,8 @@ def read_chunk(req):
             else:
                 print("No more lines?")
                 break
-        except Exception as info:
-            
+        except Exception:
             break
-    return
 
  
 #########################
@@ -257,12 +255,12 @@ def processCommit(commit):
                     print("Processing update of file %s" % path)
                 # a single commit can potentially affect multiple projects
                 # create the dict and array if necessary
-                if not project in targets:
+                if project not in targets:
                     targets[project] = {}
                 committer = commit['committer']
-                if not committer in targets[project]:
+                if committer not in targets[project]:
                     targets[project][committer] = []
-                if not commit in targets[project][committer]: 
+                if commit not in targets[project][committer]: 
                     targets[project][committer].append(commit)
         else:
             if trace:
@@ -306,7 +304,7 @@ class PubSubClient(Thread):
                             commit = obj['commit']
                             processCommit(commit)
 
-                except ValueError as detail:
+                except ValueError:
                     continue