Revision: 5156 Author: filnik Date: 2008-03-23 21:35:08 +0000 (Sun, 23 Mar 2008)
Log Message: ----------- Fixing the redirect detection
Modified Paths: -------------- trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py =================================================================== --- trunk/pywikipedia/wikipedia.py 2008-03-23 20:01:02 UTC (rev 5155) +++ trunk/pywikipedia/wikipedia.py 2008-03-23 21:35:08 UTC (rev 5156) @@ -1671,7 +1671,8 @@ except NoPage: raise except IsRedirectPage, err: - target = err[0] + target = err[0].replace('"', '"') # otherwise it will return error with + # pages with " inside. if '|' in target: warnings.warn("'%s' has a | character, this makes no sense" % target, Warning)