Bugs item #3025832, was opened at 2010-07-06 14:02
Message generated for change (Tracker Item Submitted) made by liangent
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=302583…
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: Open
Resolution: None
Priority: 5
Private: No
Submitted By: liangent (liangent)
Assigned to: Nobody/Anonymous (nobody)
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
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=302583…