jenkins-bot has submitted this change and it was merged.
Change subject: [pep8] keep lines beneath 79 chars
......................................................................
[pep8] keep lines beneath 79 chars
Keep lines beneath 79 chars.
Otherwise there is an ugly line feed while printing.
Change-Id: I8c4fdd33ae8a12e2c67279f22338f5aaceec8775
---
M pywikibot/bot.py
M pywikibot/pagegenerators.py
2 files changed, 13 insertions(+), 12 deletions(-)
Approvals:
John Vandenberg: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/bot.py b/pywikibot/bot.py
index 3c76689..ed2c451 100644
--- a/pywikibot/bot.py
+++ b/pywikibot/bot.py
@@ -996,8 +996,8 @@
-nolog Disable the log file (if it is enabled by default).
-maxlag Sets a new maxlag parameter to a number of seconds. Defer bot
- edits during periods of database server lag. Default is set by
- config.py
+ edits during periods of database server lag. Default is set
+ by config.py
-putthrottle:n Set the minimum time (in seconds) the bot will wait between
-pt:n saving pages.
diff --git a/pywikibot/pagegenerators.py b/pywikibot/pagegenerators.py
index fdc4be9..0bc7bd6 100644
--- a/pywikibot/pagegenerators.py
+++ b/pywikibot/pagegenerators.py
@@ -136,7 +136,7 @@
-logevents:review,Usr,20121231 gives review pages by user
Usr since the beginning till the 31 Dec 2012
- In some cases it must be written as
-logevents:"patrol,Usr,20"
+ In some cases it must be written as -logevents:"move,Usr,20"
-namespaces Filter the page generator to only yield pages in the
-namespace specified namespaces. Separate multiple namespace
@@ -174,7 +174,7 @@
-imagesused Work on all images that contained on a certain page.
Argument can also be given as
"-imagesused:linkingpagetitle".
--newimages If given as -newimages:x, it will work on the x newest images.
+-newimages If given as -newimages:x, it will work on x newest images.
Otherwise asks to input the number of wanted images.
-newpages Work on the most recent new pages. If given as -newpages:x,
@@ -182,15 +182,15 @@
-recentchanges Work on the pages with the most recent changes. If
given as -recentchanges:x, will work on the x most recently
- changed pages. If given as -recentchanges:offset,duration it will
- work on pages changed from 'offset' minutes with
'duration'
- minutes of timespan.
+ changed pages. If given as -recentchanges:offset,duration it
+ will work on pages changed from 'offset' minutes with
+ 'duration' minutes of timespan.
By default, if no values follow -recentchanges, then we pass
-recentchanges:x where x = 60
Examples:
- -recentchanges:20 will give the 20 most recently changed pages
+ -recentchanges:20 gives the 20 most recently changed pages
-recentchanges:120,70 will give pages with 120 offset
minutes and 70 minutes of timespan
@@ -214,13 +214,14 @@
-prefixindex Work on pages commencing with a common prefix.
-subpage:n Filters pages to only those that have depth n
- i.e. a depth of 0 filters out all pages that are subpages, and
- a depth of 1 filters out all pages that are subpages of subpages.
+ i.e. a depth of 0 filters out all pages that are subpages,
+ and a depth of 1 filters out all pages that are subpages of
+ subpages.
-titleregex A regular expression that needs to match the article title
otherwise the page won't be returned.
- Multiple -titleregex:regexpr can be provided and the page will
- be returned if title is matched by any of the regexpr
+ Multiple -titleregex:regexpr can be provided and the page
+ will be returned if title is matched by any of the regexpr
provided.
Case insensitive regular expressions will be used and
dot matches any character.
--
To view, visit
https://gerrit.wikimedia.org/r/281897
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I8c4fdd33ae8a12e2c67279f22338f5aaceec8775
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: jenkins-bot <>