You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@labs.apache.org by ad...@apache.org on 2014/04/26 20:00:23 UTC
svn commit: r1590264 - /labs/panopticon/src/asf/utils/committers.py
Author: adc
Date: Sat Apr 26 18:00:23 2014
New Revision: 1590264
URL: http://svn.apache.org/r1590264
Log:
PEP 8 rulz
Modified:
labs/panopticon/src/asf/utils/committers.py
Modified: labs/panopticon/src/asf/utils/committers.py
URL: http://svn.apache.org/viewvc/labs/panopticon/src/asf/utils/committers.py?rev=1590264&r1=1590263&r2=1590264&view=diff
==============================================================================
--- labs/panopticon/src/asf/utils/committers.py (original)
+++ labs/panopticon/src/asf/utils/committers.py Sat Apr 26 18:00:23 2014
@@ -41,7 +41,7 @@ class Committer(object):
self.mentoring = set(mentoring)
def as_tuple(self):
- return (self.username, self.member, self.fullname, tuple(sorted(self.emails)), tuple(sorted(self.urls)), tuple(sorted(self.committees)), tuple(sorted(self.projects)), tuple(sorted(self.mentoring)))
+ return self.username, self.member, self.fullname, tuple(sorted(self.emails)), tuple(sorted(self.urls)), tuple(sorted(self.committees)), tuple(sorted(self.projects)), tuple(sorted(self.mentoring))
def __eq__(self, other):
return self.as_tuple() == other.as_tuple()
@@ -80,9 +80,12 @@ def get_committer(committer, username, p
urls = committer_json['urls']
committees = committer_json['committees']
projects = set(committer_json['groups'])
- if 'apsite' in projects: projects.remove('apsite')
- if 'committers' in projects: projects.remove('committers')
- if 'member' in projects: projects.remove('member')
+ if 'apsite' in projects:
+ projects.remove('apsite')
+ if 'committers' in projects:
+ projects.remove('committers')
+ if 'member' in projects:
+ projects.remove('member')
mentoring = committer_json['auth']
COMMITTERS[committer] = Committer(availid, member, fullname, emails, urls, committees, projects, mentoring)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@labs.apache.org
For additional commands, e-mail: commits-help@labs.apache.org