jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/683851 )
Change subject: [docs] Update docs ......................................................................
[docs] Update docs
Change-Id: I04abf3c5c242a06f0b4b410b65ccaa0665457b37 --- M scripts/archivebot.py M scripts/interwiki.py 2 files changed, 6 insertions(+), 1 deletion(-)
Approvals: Xqt: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py index e88ef2c..d696df2 100755 --- a/scripts/archivebot.py +++ b/scripts/archivebot.py @@ -189,11 +189,15 @@ Return a timedelta for a shorthand duration.
@param string: a string defining a time period: + + Examples:: + 300s - 300 seconds 36h - 36 hours 7d - 7 days 2w - 2 weeks (14 days) 1y - 1 year + @param timestamp: a timestamp to calculate a more accurate duration offset used by years @type timestamp: datetime.datetime @@ -255,6 +259,7 @@ Return a size for a shorthand size.
Accepts a string defining a size:: + 1337 - 1337 bytes 150K - 150 kilobytes 2M - 2 megabytes diff --git a/scripts/interwiki.py b/scripts/interwiki.py index 9e6e317..62eeba9 100755 --- a/scripts/interwiki.py +++ b/scripts/interwiki.py @@ -603,7 +603,7 @@
With P a set of pages, NL ('NextLevel') a function on sets defined as:
- NL(P) = { target | ∃ source ∈ P, target ∈ source.langlinks() } + `NL(P) = { target | ∃ source ∈ P, target ∈ source.langlinks() }`
pseudocode::