jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/487582 )
Change subject: [IMPR] Minor improvements of lonelypages.py script ......................................................................
[IMPR] Minor improvements of lonelypages.py script
1. Fixed typos in code 2. Removed params xml, page, limit from documentation because they are already included by pagegenerators
Bug: T201491 Bug: T215102 Change-Id: I43dae94fe6a84ee35daa957f536b735863f926f1 --- M scripts/lonelypages.py 1 file changed, 2 insertions(+), 12 deletions(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/lonelypages.py b/scripts/lonelypages.py index e46b311..df30892 100755 --- a/scripts/lonelypages.py +++ b/scripts/lonelypages.py @@ -7,14 +7,6 @@
¶ms;
--xml Retrieve information from a local XML dump (pages-articles - or pages-meta-current, see https://dumps.wikimedia.org). - Argument can also be given as "-xml:filename". - --page Only edit a specific page. - Argument can also be given as "-page:pagetitle". You can - give this parameter multiple times to edit multiple pages. - Furthermore, the following command line parameters are supported:
-enable: Enable or disable the bot via a Wiki Page. @@ -22,8 +14,6 @@ -disambig: Set a page where the bot saves the name of the disambig pages found (default: skip the pages)
--limit: Set how many pages check. - -always Always say yes, won't ask
@@ -143,7 +133,7 @@ try: self.disambigtext = self.disambigpage.get() except pywikibot.NoPage: - pywikibot.output("{0} doesn't esist, skip!" + pywikibot.output("{0} doesn't exist, skip!" .format(self.disambigpage.title())) self.disambigtext = '' except pywikibot.IsRedirectPage: @@ -164,7 +154,7 @@ getenable = enable.get() except pywikibot.NoPage: pywikibot.output( - "{0} doesn't esist, I use the page as if it was blank!" + "{0} doesn't exist, I use the page as if it was blank!" .format(enable.title())) getenable = '' except pywikibot.IsRedirectPage:
pywikibot-commits@lists.wikimedia.org