http://www.mediawiki.org/wiki/Special:Code/pywikipedia/10737
Revision: 10737
Author: xqt
Date: 2012-11-15 21:06:38 +0000 (Thu, 15 Nov 2012)
Log Message:
-----------
methods are imported and textlib is unknown; fix for r10024
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2012-11-15 12:58:41 UTC (rev 10736)
+++ trunk/pywikipedia/wikipedia.py 2012-11-15 21:06:38 UTC (rev 10737)
@@ -846,7 +846,7 @@
raise IsRedirectPage(redirtarget)
if self.section() and \
- not textlib.does_text_contain_section(pagetext, self.section()):
+ not does_text_contain_section(pagetext, self.section()):
try:
self._getexception
except AttributeError:
@@ -987,7 +987,7 @@
raise IsRedirectPage(redirtarget)
if self.section() and \
- not textlib.does_text_contain_section(text, self.section()):
+ not does_text_contain_section(text, self.section()):
try:
self._getexception
except AttributeError: