http://www.mediawiki.org/wiki/Special:Code/pywikipedia/11677
Revision: 11677
Author: xqt
Date: 2013-06-21 07:30:15 +0000 (Fri, 21 Jun 2013)
Log Message:
-----------
fix for last commit r11676
Modified Paths:
--------------
trunk/pywikipedia/pywikibot/textlib.py
Modified: trunk/pywikipedia/pywikibot/textlib.py
===================================================================
--- trunk/pywikipedia/pywikibot/textlib.py 2013-06-21 07:27:48 UTC (rev 11676)
+++ trunk/pywikipedia/pywikibot/textlib.py 2013-06-21 07:30:15 UTC (rev 11677)
@@ -1075,5 +1075,5 @@
def does_text_contain_section(pagetext, section):
section = re.sub('[ _]', '[ _]', section)
"""Determines whether the page text contains the given section
title."""
- m = re.search("=+[ ']*%s[ ']*=+" % section) pagetext)
+ m = re.search("=+[ ']*%s[ ']*=+" % section, pagetext)
return bool(m)