Patches item #3096196, was opened at 2010-10-27 10:30
Message generated for change (Tracker Item Submitted) made by lankier
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=309619…
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: lankier (lankier)
Assigned to: Nobody/Anonymous (nobody)
Summary: Page.get(expandtemplates=True) fix
Initial Comment:
Page.get() saves the result of a previous request. But it is incorrect for
expandtemplates=True.
Test:
import wikipedia
site = wikipedia.getSite()
page = wikipedia.Page(site, 'Pop')
txt1 = page.get(expandtemplates=False)
txt2 = page.get(expandtemplates=True)
print txt1 == txt2 # False, it`s Okay
page = wikipedia.Page(site, 'Pop')
txt2 = page.get(expandtemplates=True)
txt1 = page.get(expandtemplates=False)
print txt1 == txt2 # True, it`s a bug
This patch fixes it
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=309619…