jenkins-bot has submitted this change and it was merged.
Change subject: Fix bugs in textlib.py
......................................................................
Fix bugs in textlib.py
* Fixed undefined name Error
* Fixed broken link
* Renamed PyWikipediaBot to Pywikibot
Change-Id: Ie14d14edb7e92f8463bf4983804cb3e54ff012a0
---
M pywikibot/textlib.py
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 751634c..6624158 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -774,11 +774,11 @@
if site is None:
site = pywikibot.getSite()
if site.sitename() == 'wikipedia:de' and "{{Personendaten" in
oldtext:
- raise Error("""\
-The PyWikipediaBot is no longer allowed to touch categories on the German
+ raise pywikibot.Error("""\
+The Pywikibot is no longer allowed to touch categories on the German
Wikipedia on pages that contain the Personendaten template because of the
non-standard placement of that template.
-See
http://de.wikipedia.org/wiki/Hilfe_Diskussion:Personendaten/Archiv/bis_2006…
+See
http://de.wikipedia.org/wiki/Hilfe_Diskussion:Personendaten/Archiv/1#Positi…
""")
separator = site.family.category_text_separator
iseparator = site.family.interwiki_text_separator
--
To view, visit
https://gerrit.wikimedia.org/r/104194
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie14d14edb7e92f8463bf4983804cb3e54ff012a0
Gerrit-PatchSet: 2
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Pyfisch <pyfisch(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot