[email protected] has uploaded a new change for review.
https://gerrit.wikimedia.org/r/104194
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(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core
refs/changes/94/104194/1
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 751634c..7d59faf 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -26,6 +26,7 @@
from html.parser import HTMLParser
from . import config2 as config
+from pywikibot.exceptions import *
TEMP_REGEX = re.compile(
'{{(?:msg:)?(?P<name>[^{\|]+?)(?:\|(?P<params>[^{]+?(?:{[^{]+?}[^{]*?)?))?}}')
@@ -775,10 +776,10 @@
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
+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#Position_der_Personendaten_am_.22Artikelende.22
+See
http://de.wikipedia.org/wiki/Hilfe_Diskussion:Personendaten/Archiv/1#Position_der_Personendaten_am_.22Artikelende.22
""")
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: newchange
Gerrit-Change-Id: Ie14d14edb7e92f8463bf4983804cb3e54ff012a0
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: [email protected]
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits