Xqt submitted this change.

View Change


Approvals: Xqt: Verified; Looks good to me, approved
fix example docstring of url2string

Change-Id: I142968e987eb9e5706e2bfa00dedad63eb380eb0
Signed-off-by: Xqt <info@gno.de>
---
M pywikibot/tools/chars.py
1 file changed, 11 insertions(+), 0 deletions(-)

diff --git a/pywikibot/tools/chars.py b/pywikibot/tools/chars.py
index f4d7a95..c086f4d 100644
--- a/pywikibot/tools/chars.py
+++ b/pywikibot/tools/chars.py
@@ -101,6 +101,7 @@
Uses the first encoding that doesn't cause an error.

**Example:**
+
>>> url2string('/El%20Ni%C3%B1o/')
'/El NiƱo/'
>>> url2string('/El%20Ni%C3%B1o/', 'ascii')

To view, visit change 910722. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I142968e987eb9e5706e2bfa00dedad63eb380eb0
Gerrit-Change-Number: 910722
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: Xqt <info@gno.de>
Gerrit-CC: jenkins-bot
Gerrit-MessageType: merged