incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject svn commit: r711788 - /incubator/public/trunk/clutch.py
Date Thu, 06 Nov 2008 08:01:52 GMT
Author: crossley
Date: Thu Nov  6 00:01:51 2008
New Revision: 711788

URL: http://svn.apache.org/viewvc?rev=711788&view=rev
Log:
Use str.splitlines() rather than str.split('\n')

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=711788&r1=711787&r2=711788&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Thu Nov  6 00:01:51 2008
@@ -290,7 +290,7 @@
   # Scan the project News section and count new commiters.
   for section in dom.getElementsByTagName("section"):
     if section.attributes.has_key('id') and section.getAttribute('id') == "News":
-      for line in section.toxml().split('\n'):
+      for line in section.toxml().splitlines():
         matchNewCommitter = re.search(newCommitterRE, line)
         if matchNewCommitter:
           projects[k]['numberCommittersNew'] += 1



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message