jenkins-bot has submitted this change and it was merged.
Change subject: Fix noreferences xml support ......................................................................
Fix noreferences xml support
The initial port imported xmlreader instead of pywikibot.xmlreader.
Change-Id: Ia92826d131307525cb599da4f835fc8a860492f9 --- M scripts/noreferences.py 1 file changed, 3 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/noreferences.py b/scripts/noreferences.py index 3ca9711..d0e7ce0 100755 --- a/scripts/noreferences.py +++ b/scripts/noreferences.py @@ -42,7 +42,9 @@ #
import re + import pywikibot + from pywikibot import i18n, pagegenerators, textlib, Bot
# This is required for the text that is shown when you run this script @@ -446,7 +448,7 @@ self.referencesR = re.compile('<references.*?/>', re.IGNORECASE)
def __iter__(self): - import xmlreader + from pywikibot import xmlreader dump = xmlreader.XmlDump(self.xmlFilename) for entry in dump.parse(): text = textlib.removeDisabledParts(entry.text)