http://www.mediawiki.org/wiki/Special:Code/pywikipedia/9492
Revision: 9492
Author: xqt
Date: 2011-09-03 11:04:34 +0000 (Sat, 03 Sep 2011)
Log Message:
-----------
revert r3148 due to bug #2989218; unsure what do wo with wikipedia.sectionencode() method
Modified Paths:
--------------
trunk/pywikipedia/wikipedia.py
Modified: trunk/pywikipedia/wikipedia.py
===================================================================
--- trunk/pywikipedia/wikipedia.py 2011-09-03 10:48:13 UTC (rev 9491)
+++ trunk/pywikipedia/wikipedia.py 2011-09-03 11:04:34 UTC (rev 9492)
@@ -385,11 +385,7 @@
raise InvalidTitle(u"Invalid section in category
'%s'" % t)
else:
t, sec = t.split(u'#', 1)
- self._section = sec.lstrip()
- self._section = sectionencode(self._section,
- self._site.encoding())
- if not self._section:
- self._section = None
+ self._section = sec.lstrip() or None
t = t.rstrip()
elif sectionStart == 0:
raise InvalidTitle(u"Invalid title starting with a #:
'%s'" % t)
@@ -456,8 +452,8 @@
before Category: and Image: links
@param as_filename: - not implemented yet -
- If underscore is True, replace all ' ' characters with '_'.
If savetitle is True, encode any wiki syntax in the title.
+
"""
title = self._title
if asLink: