[cc-commits] [CC SVN] r12830 - pywikipedia/trunk
webmaster at creativecommons.org
webmaster at creativecommons.org
Tue Jun 23 15:46:54 EDT 2009
Author: paulproteus
Date: 2009-06-23 19:46:54 +0000 (Tue, 23 Jun 2009)
New Revision: 12830
Modified:
pywikipedia/trunk/staff.py
Log:
Changes to the design of the /about/people page broke this script. We now just grab all people from the page, not just certains ones under heading that no longer exist.
Modified: pywikipedia/trunk/staff.py
===================================================================
--- pywikipedia/trunk/staff.py 2009-06-23 19:14:12 UTC (rev 12829)
+++ pywikipedia/trunk/staff.py 2009-06-23 19:46:54 UTC (rev 12830)
@@ -13,11 +13,7 @@
result = []
for people_list in people_lists:
- heading_selected = people_list.getprevious()
- heading_text = heading_selected.text or heading_selected.findtext('*')
- assert heading_text
- if heading_text in headings:
- result.extend([thing.text or thing.findtext('*') for thing in people_list])
+ result.extend([thing.text or thing.findtext('*') for thing in people_list])
assert 'Mike Linksvayer' in result
return result
More information about the cc-commits
mailing list