Revision: 7942 Author: xqt Date: 2010-02-17 05:53:13 +0000 (Wed, 17 Feb 2010)
Log Message: ----------- Bugfix for #2952927
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2010-02-16 17:07:50 UTC (rev 7941) +++ trunk/pywikipedia/wikipedia.py 2010-02-17 05:53:13 UTC (rev 7942) @@ -4395,9 +4395,6 @@ if nothing is changed, it is added at the end
""" - # Hyperlink regex is defined in weblinkchecker.py - import weblinkchecker - if site is None: site = getSite()
@@ -4431,7 +4428,7 @@ # depth, we'd need recursion which can't be done in Python's re. # After all, the language of correct parenthesis words is not regular. 'template': re.compile(r'(?s){{(({{(({{.*?}})|.)*}})|.)*}}'), - 'hyperlink': weblinkchecker.compileLinkR(), + 'hyperlink': compileLinkR(), 'gallery': re.compile(r'(?is)<gallery.*?>.*?</gallery>'), # this matches internal wikilinks, but also interwiki, categories, and # images.