jenkins-bot merged this change.
[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(-)
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:
To view, visit change 487582. To unsubscribe, or for help writing mail filters, visit settings.