Bugs item #3025832, was opened at 2010-07-06 15:02 Message generated for change (Comment added) made by xqt You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3025832...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: liangent (liangent)
Assigned to: xqt (xqt)
Summary: Typo in wikipedia.py
Initial Comment: Index: wikipedia.py =================================================================== --- wikipedia.py (revision 8344) +++ wikipedia.py (working copy) @@ -3433,7 +3433,7 @@ galleryR = re.compile(r'(?is)<gallery>(?P<items>.*?)</gallery>') galleryItemR = re.compile(r'(?m)^%s?(?P<filename>%s)\s*(?P<label>|.*?)?\s*$' % (namespacePattern, imagePattern)) def gallery_replacer(match): - return ur'<gallery>%s<gallery>' % galleryItemR.sub(filename_replacer, match.group('items')) + return ur'<gallery>%s</gallery>' % galleryItemR.sub(filename_replacer, match.group('items')) new_text = galleryR.sub(gallery_replacer, new_text)
if (text == new_text) or (not safe):
Pywikipedia [http] trunk/pywikipedia (r8344, 2010/07/05, 17:49:14) Python 2.5.2 (r252:60911, Jan 24 2010, 17:44:40) [GCC 4.3.2] config-settings: use_api = True use_api_login = True
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2010-07-07 15:11
Message: done in r8345. Thanks.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=3025832...
pywikipedia-bugs@lists.wikimedia.org