http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9487
Revision: 9487 Author: xqt Date: 2011-09-03 08:23:27 +0000 (Sat, 03 Sep 2011) Log Message: ----------- Format doc sting to PEP8
Modified Paths: -------------- branches/rewrite/pywikibot/page.py
Modified: branches/rewrite/pywikibot/page.py =================================================================== --- branches/rewrite/pywikibot/page.py 2011-09-01 14:47:27 UTC (rev 9486) +++ branches/rewrite/pywikibot/page.py 2011-09-03 08:23:27 UTC (rev 9487) @@ -2199,11 +2199,11 @@ # Convert URL-encoded characters to unicode t = url2unicode(t, site=self._source)
- # Normalize unicode string to a NFC (composed) format to allow proper - # string comparisons. According to + # Normalize unicode string to a NFC (composed) format to allow + # proper string comparisons. According to # http://svn.wikimedia.org/viewvc/mediawiki/branches/REL1_6/phase3/includes/no... - # the mediawiki code normalizes everything to NFC, not NFKC (which - # might result in information loss). + # the mediawiki code normalizes everything to NFC, not NFKC + # (which might result in information loss). t = unicodedata.normalize('NFC', t)
# This code was adapted from Title.php : secureAndSplit()
pywikipedia-svn@lists.wikimedia.org