jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/467932 )
Change subject: [simplify] return a bool value for in_list method
......................................................................
[simplify] return a bool value for in_list method
- return a bool value for in_list method,
finally return False instead of None
- change test_in_list accordingly which gives a bool now
detached from I4ef9009c91e485509e
Change-Id: Ifdf45db1117ebdd8358727ded08c5e537fb27bc2
---
M scripts/patrol.py
M tests/patrolbot_tests.py
2 files changed, 18 insertions(+), 19 deletions(-)
Approvals:
Zhuyifei1999: Looks good to me, but someone else must approve
Framawiki: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/patrol.py b/scripts/patrol.py
index e72e7ad..f68902f 100755
--- a/scripts/patrol.py
+++ b/scripts/patrol.py
@@ -172,12 +172,12 @@
# quick check for exact match
if title in pagelist:
- return title
+ return True
# quick check for wildcard
if '' in pagelist:
verbose_output('wildcarded')
- return '.*'
+ return True
for item in pagelist:
verbose_output('checking against whitelist item = ' + item)
@@ -185,12 +185,12 @@
if isinstance(item, LinkedPagesRule):
verbose_output('invoking programmed rule')
if item.match(title):
- return item
+ return True
elif title_match(item, title):
- return item
-
+ return True
verbose_output('not found')
+ return False
def parse_page_tuples(self, wikitext, user=None):
"""Parse page details apart from 'user:' for use."""
diff --git a/tests/patrolbot_tests.py b/tests/patrolbot_tests.py
index 17be8a1..1920c00 100644
--- a/tests/patrolbot_tests.py
+++ b/tests/patrolbot_tests.py
@@ -56,23 +56,22 @@
def test_in_list(self):
"""Test the method which returns whether a page is in the list."""
- # Return the title if there is an exact match
- self.assertEqual(self.bot.in_list(['Foo', 'Foobar'], 'Foo'), 'Foo')
- self.assertEqual(self.bot.in_list(['Foo', 'Foobar'], 'Foobar'),
- 'Foobar')
+ # Return True if there is an exact match
+ self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foo'))
+ self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foobar'))
+ self.assertFalse(self.bot.in_list(['Foo', 'Foobar'], 'Bar'))
- # Return the first entry which starts with the title if there is no
+ # Return True if an entry starts with the title if there is no
# exact match
- self.assertEqual(self.bot.in_list(['Foo', 'Foobar'], 'Foob'), 'Foo')
- self.assertEqual(self.bot.in_list(['Foo', 'Foobar'], 'Foobarz'),
- 'Foo')
- self.assertEqual(self.bot.in_list(['Foo', 'Foobar', 'Bar'], 'Barz'),
- 'Bar')
+ self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foob'))
+ self.assertTrue(self.bot.in_list(['Foo', 'Foobar'], 'Foobarz'))
+ self.assertTrue(self.bot.in_list(['Foo', 'Foobar', 'Bar'], 'Barz'))
+ self.assertFalse(self.bot.in_list(['Foobar', 'Bar'], 'Foo'))
- # '' returns .* if there is no exact match
- self.assertEqual(self.bot.in_list([''], 'Foo'), '.*')
- self.assertEqual(self.bot.in_list(['', 'Foobar'], 'Foo'), '.*')
- self.assertEqual(self.bot.in_list(['', 'Foo'], 'Foo'), 'Foo')
+ # '' returns True if there is no exact match
+ self.assertTrue(self.bot.in_list([''], 'Foo'))
+ self.assertTrue(self.bot.in_list(['', 'Foobar'], 'Foo'))
+ self.assertTrue(self.bot.in_list(['', 'Foo'], 'Foo'))
if __name__ == '__main__': # pragma: no cover
--
To view, visit https://gerrit.wikimedia.org/r/467932
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifdf45db1117ebdd8358727ded08c5e537fb27bc2
Gerrit-Change-Number: 467932
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: Zhuyifei1999 <zhuyifei1999(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/467411 )
Change subject: [doc] Update README-conversion.txt and explain debugging level
......................................................................
[doc] Update README-conversion.txt and explain debugging level
A lot of methods has been changed since compat release.
It should be recommended to use debugging level to show all deprecation
warnings and to clean the code accordingly instead to have a hint for
only a few methods and keep them unchanged.
Explain using debugging level.
Bug: T127998
Change-Id: Idd97333c9a6337041436d470cfa7f89938070047
---
M README-conversion.txt
1 file changed, 17 insertions(+), 10 deletions(-)
Approvals:
Framawiki: Looks good to me, approved
jenkins-bot: Verified
diff --git a/README-conversion.txt b/README-conversion.txt
index 1026cfa..e127cc5 100644
--- a/README-conversion.txt
+++ b/README-conversion.txt
@@ -43,6 +43,23 @@
pwb.py compat2core [<script to convert>]
and follow the instructions and hints.
+== Deprecated methods ==
+
+A lot of object methods have been deprecated; deprecated methods still work,
+but print a warning message in debug mode. You should follow the warning
+message and update your script accordingly because deprecated methods might
+be removed in future releases.
+
+To activate the debugging level just call your script with -debug option like
+-debug:bot or
+-debug:*
+
+Note: The -debug option does not warn when importing deprecated modules.
+A better ability is to set the debugging level in your user-config.py:
+debug_log = ['*'] or
+debug_log = ['bot'] or
+log += ['deprecation']
+
== Python libraries ==
[Note: the goal will be to package pywikibot with setuptools easy_install,
@@ -69,16 +86,6 @@
Category, or vice versa: e.g., Category(pageobj) converts a Page to a
Category, as long as the page is in the category namespace.
-The following methods of the Page object have been deprecated (deprecated
-methods still work, but print a warning message in debug mode):
-
-- urlname(): replaced by Page.title(as_url=True)
-- titleWithoutNamespace(): replaced by Page.title(with_ns=False)
-- sectionFreeTitle(): replaced by Page.title(with_section=False)
-- aslink(): replaced by Page.title(as_link=True)
-- encoding(): replaced by Page.site.encoding()
-- put_async(): replaced by Page.put(asynchronous=True)
-
The following methods of the Page object have been obsoleted and no longer
work (but these methods don't appear to be used anywhere in the code
distributed with the bot framework). The functionality of the two obsolete
--
To view, visit https://gerrit.wikimedia.org/r/467411
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Idd97333c9a6337041436d470cfa7f89938070047
Gerrit-Change-Number: 467411
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/467410 )
Change subject: [doc] Update README-conversion.txt
......................................................................
[doc] Update README-conversion.txt
- update compat2core call; the maintenance path is added by pwb.py
- calling removeImage or replaceImage doesn't show a warning message
but raise a NotImplementedError exception.
Change-Id: I621bdfa5a9865660f1b50e012d02361a08197065
---
M README-conversion.txt
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Framawiki: Looks good to me, approved
jenkins-bot: Verified
diff --git a/README-conversion.txt b/README-conversion.txt
index 9618a07..1026cfa 100644
--- a/README-conversion.txt
+++ b/README-conversion.txt
@@ -40,7 +40,7 @@
There is a helper script which does a lot of changes automatically.
Just call it:
-pwb.py maintenance/compat2core [<script to convert>]
+pwb.py compat2core [<script to convert>]
and follow the instructions and hints.
== Python libraries ==
@@ -83,7 +83,7 @@
work (but these methods don't appear to be used anywhere in the code
distributed with the bot framework). The functionality of the two obsolete
methods is easily replaced by using standard search-and-replace techniques.
-If you call them, they will print a warning and do nothing else:
+If you call them, they will raise an NotImplementedError exception:
- removeImage()
- replaceImage()
--
To view, visit https://gerrit.wikimedia.org/r/467410
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I621bdfa5a9865660f1b50e012d02361a08197065
Gerrit-Change-Number: 467410
Gerrit-PatchSet: 2
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: Framawiki <framawiki(a)tools.wmflabs.org>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)
Gerrit-CC: D3r1ck01 <alangiderick(a)gmail.com>
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/467076 )
Change subject: [fix] Fixed cleanup regression error
......................................................................
[fix] Fixed cleanup regression error
Fix regression TypeError, "pg" is a page object and
not a string.
Bug: T206912
Change-Id: I10815cf1a1212e786702ba325dd30e9ef0c6a4ae
---
M scripts/archivebot.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/archivebot.py b/scripts/archivebot.py
index e501dd8..8028f5f 100755
--- a/scripts/archivebot.py
+++ b/scripts/archivebot.py
@@ -785,7 +785,7 @@
pagelist.append(pywikibot.Page(site, pagename, ns=3))
pagelist = sorted(pagelist)
for pg in iter(pagelist):
- pywikibot.output('Processing ' + pg)
+ pywikibot.output('Processing {}'.format(pg))
# Catching exceptions, so that errors in one page do not bail out
# the entire process
try:
--
To view, visit https://gerrit.wikimedia.org/r/467076
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I10815cf1a1212e786702ba325dd30e9ef0c6a4ae
Gerrit-Change-Number: 467076
Gerrit-PatchSet: 2
Gerrit-Owner: D3r1ck01 <alangiderick(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/464956 )
Change subject: [cleanup] minor cleanup of scripts/category.py
......................................................................
[cleanup] minor cleanup of scripts/category.py
- some minor grammatical cleanup.
- typo fix in some cases.
Periods added to @param anotation as there are actual
statements describing the params but for @type, these
are just return types so no period needed.
Change-Id: I9fcbb0b9fd077bfe6b539ed20ec197362f7c7860
---
M scripts/category.py
1 file changed, 51 insertions(+), 52 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/category.py b/scripts/category.py
index 049aaec..2ba64b6 100755
--- a/scripts/category.py
+++ b/scripts/category.py
@@ -1,26 +1,26 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
"""
-Scripts to manage categories.
+Script to manage categories.
Syntax:
python pwb.py category action [-option]
where action can be one of these:
- * add - mass-add a category to a list of pages
- * remove - remove category tag from all pages in a category
- * move - move all pages in a category to another category
- * tidy - tidy up a category by moving its pages into subcategories
- * tree - show a tree of subcategories of a given category
- * listify - make a list of all of the articles that are in a category
+ * add - mass-add a category to a list of pages.
+ * remove - remove category tag from all pages in a category.
+ * move - move all pages in a category to another category.
+ * tidy - tidy up a category by moving its pages into subcategories.
+ * tree - show a tree of subcategories of a given category.
+ * listify - make a list of all of the articles that are in a category.
and option can be one of these:
Options for "add" action:
- * -person - sort persons by their last name
- * -create - If a page doesn't exist, do not skip it, create it instead
- * -redirect - Follow redirects
+ * -person - Sort persons by their last name.
+ * -create - If a page doesn't exist, do not skip it, create it instead.
+ * -redirect - Follow redirects.
If action is "add", the following options are supported:
@@ -47,8 +47,8 @@
* -hist - Creates a nice wikitable on the talk page of target category
that contains detailed page history of the source category.
- * -nodelete - Don't delete the old category after move
- * -nowb - Don't update the wikibase repository
+ * -nodelete - Don't delete the old category after move.
+ * -nowb - Don't update the wikibase repository.
* -allowsplit - If that option is not set, it only moves the talk and main
page together.
* -mvtogether - Only move the pages/subcategories of a category, if the
@@ -68,16 +68,16 @@
Options for several actions:
- * -rebuild - reset the database
+ * -rebuild - Reset the database.
* -from: - The category to move from (for the move option)
Also, the category to remove from in the remove option
- Also, the category to make a list of in the listify option
- * -to: - The category to move to (for the move option)
- - Also, the name of the list to make in the listify option
+ Also, the category to make a list of in the listify option.
+ * -to: - The category to move to (for the move option).
+ - Also, the name of the list to make in the listify option.
NOTE: If the category names have spaces in them you may need to use
a special syntax in your shell so that the names aren't treated as
separate parameters. For instance, in BASH, use single quotes,
- e.g. -from:'Polar bears'
+ e.g. -from:'Polar bears'.
* -batch - Don't prompt to delete emptied categories (do it
automatically).
* -summary: - Pick a custom edit summary for the bot.
@@ -85,7 +85,7 @@
rearranging them.
* -recurse - Recurse through all subcategories of categories.
* -pagesonly - While removing pages from a category, keep the subpage links
- and do not remove them
+ and do not remove them.
* -match - Only work on pages whose titles match the given regex (for
move and remove actions).
* -depth: - The max depth limit beyond which no subcategories will be
@@ -190,9 +190,9 @@
"""
Return page to be categorized by type.
- @param page: Existing, missing or redirect page to be processed
+ @param page: Existing, missing or redirect page to be processed.
@type page: pywikibot.Page
- @return: Page to be categorized
+ @return: Page to be categorized.
@rtype: pywikibot.Page or None
"""
if page.exists():
@@ -239,11 +239,11 @@
Also the doc page can be changed by doc template parameter.
- TODO: decide if/how to enable/disable this feature
+ TODO: decide if/how to enable/disable this feature.
- @param page: Page to be processed
+ @param page: Page to be processed.
@type page: pywikibot.Page
- @return: Page to be categorized
+ @return: Page to be categorized.
@rtype: pywikibot.Page
"""
includeonly = []
@@ -322,8 +322,8 @@
def getSubcats(self, supercat):
"""Return the list of subcategories for a given supercategory.
- Saves this list in a temporary database so that it won't be loaded from
- the server next time it's required.
+ Saves this list in a temporary database so that it won't be loaded
+ from the server next time it's required.
"""
self._load()
# if we already know which subcategories exist here
@@ -339,11 +339,11 @@
def getArticles(self, cat):
"""Return the list of pages for a given category.
- Saves this list in a temporary database so that it won't be loaded from
- the server next time it's required.
+ Saves this list in a temporary database so that it won't be loaded
+ from the server next time it's required.
"""
self._load()
- # if we already know which articles exist here
+ # if we already know which articles exist here.
if cat in self.catContentDB:
return self.catContentDB[cat][1]
else:
@@ -356,7 +356,7 @@
def getSupercats(self, subcat):
"""Return the supercategory (or a set of) for a given subcategory."""
self._load()
- # if we already know which subcategories exist here
+ # if we already know which subcategories exist here.
if subcat in self.superclassDB:
return self.superclassDB[subcat]
else:
@@ -421,13 +421,13 @@
def sorted_by_last_name(self, catlink, pagelink):
"""Return a Category with key that sorts persons by their last name.
- Parameters: catlink - The Category to be linked
- pagelink - the Page to be placed in the category
+ Parameters: catlink - The Category to be linked.
+ pagelink - the Page to be placed in the category.
Trailing words in brackets will be removed. Example: If
category_name is 'Author' and pl is a Page to [[Alexandre Dumas
(senior)]], this function will return this Category:
- [[Category:Author|Dumas, Alexandre]]
+ [[Category:Author|Dumas, Alexandre]].
"""
page_name = pagelink.title()
@@ -980,16 +980,16 @@
helping you to find out what the page is about and in which other
categories it currently is.
- @param cat_title: a title of the category to process
+ @param cat_title: a title of the category to process.
@type: str
- @param cat_db: a CategoryDatabase object
+ @param cat_db: a CategoryDatabase object.
@type: CategoryDatabase object
- @param namespaces: namespaces to focus on
+ @param namespaces: namespaces to focus on.
@type: iterable of pywikibot.Namespace
- @param comment: a custom summary for edits
+ @param comment: a custom summary for edits.
@type: str
"""
@@ -1018,13 +1018,13 @@
NOTE: current_cat is only used for internal recursion. You
should always use current_cat = original_cat.
- @param member: a page to process
+ @param member: a page to process.
@type: pywikibot.Page
- @param original_cat: original category to replace
+ @param original_cat: original category to replace.
@type: pywikibot.Category
- @param current_cat: a category which is questioned
+ @param current_cat: a category which is questioned.
@type: pywikibot.Category
"""
class CatContextOption(ContextOption):
@@ -1052,14 +1052,13 @@
Output categories in one or two columns.
Determine whether the list contains long or short
- category titles and output category titles
- as enumerated options.
+ category titles and output category titles as enumerated
+ options.
- @param cat_list: sorted iterable of category titles
- to output
+ @param cat_list: sorted iterable of category titles to output.
@type: iterable of str
- @param prefix: a prefix to assigned number index
+ @param prefix: a prefix to assigned number index.
@type: str
"""
# can we can output in two columns?
@@ -1102,14 +1101,14 @@
pywikibot.output(color_format(
'>>> {lightpurple}{0}{default} <<<', member.title()))
- # determine a reasonable amount of context
+ # determine a reasonable amount of context.
try:
full_text = member.get()
except pywikibot.NoPage:
pywikibot.output('Page {} not found.'.format(member.title()))
return
- # skip initial templates, images and coments for articles
+ # skip initial templates, images and coments for articles.
if member.namespace() == member.site.namespaces.MAIN:
excludes = ('template', 'file', 'comment')
regexes = textlib._get_regexes(excludes, member.site)
@@ -1228,7 +1227,7 @@
def teardown(self):
"""Cleanups after run operation."""
if self._generator_completed and not self._treat_counter:
- pywikibot.output('There are no pages or files in category {}'
+ pywikibot.output('There are no pages or files in category {}.'
.format(self.cat_title))
def treat(self, page):
@@ -1243,7 +1242,7 @@
Parameters:
* catTitle - The category which will be the tree's root.
- * catDB - A CategoryDatabase object
+ * catDB - A CategoryDatabase object.
* maxDepth - The limit beyond which no subcategories will be listed.
This also guarantees that loops in the category structure
won't be a problem.
@@ -1268,9 +1267,9 @@
up to level maxDepth. Recursively calls itself.
Parameters:
- * cat - the Category of the node we're currently opening
- * currentDepth - the current level in the tree (for recursion)
- * parent - the Category of the category we're coming from
+ * cat - the Category of the node we're currently opening.
+ * currentDepth - the current level in the tree (for recursion).
+ * parent - the Category of the category we're coming from.
"""
result = '#' * currentDepth
@@ -1330,7 +1329,7 @@
If args is an empty list, sys.argv is used.
- @param args: command line arguments
+ @param args: command line arguments.
@type args: unicode
"""
from_given = False
--
To view, visit https://gerrit.wikimedia.org/r/464956
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9fcbb0b9fd077bfe6b539ed20ec197362f7c7860
Gerrit-Change-Number: 464956
Gerrit-PatchSet: 2
Gerrit-Owner: D3r1ck01 <alangiderick(a)gmail.com>
Gerrit-Reviewer: D3r1ck01 <alangiderick(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/465339 )
Change subject: Localisation updates from https://translatewiki.net.
......................................................................
Localisation updates from https://translatewiki.net.
Change-Id: Ic1cb786ebb607c54dc4bdb0d0c84ffd58b91bc99
---
M category/cs.json
M category/sv.json
2 files changed, 4 insertions(+), 0 deletions(-)
Approvals:
L10n-bot: Looks good to me, approved
jenkins-bot: Verified
diff --git a/category/cs.json b/category/cs.json
index 94d4a79..73461c7 100644
--- a/category/cs.json
+++ b/category/cs.json
@@ -17,6 +17,8 @@
"category-replacing": "Robot: nahrazení kategorie %(oldcat)s za %(newcat)s",
"category-section-title": "Historie verzí bývalé %(oldcat)s",
"category-strip-cfd-templates": "Robot: odstranění šablony Přejmenovat kategorii po přesunu",
+ "category-strip-sort-keys": "Robot: odstranění šablony klíčů řazení po přesunu",
+ "category-strip-both": "Robot: odstranění šablony Přejmenovat kategorii a klíčů řazení po přesunu",
"category-version-history": "Robot: ukládání historie verzí bývalé %(oldcat)s",
"category-was-disbanded": "Robot: vyprázdnění kategorie",
"category-was-moved": "Robot: přesun kategorie na [[:Kategorie:%(newcat)s|%(title)s]]"
diff --git a/category/sv.json b/category/sv.json
index a45ac52..eda4d9f 100644
--- a/category/sv.json
+++ b/category/sv.json
@@ -17,6 +17,8 @@
"category-replacing": "Bot: Ersätter kategorin %(oldcat)s med %(newcat)s",
"category-section-title": "Sidhistorik från tidigare %(oldcat)s",
"category-strip-cfd-templates": "Bot: Tar bort raderingsmallar för genomförd åtgärd",
+ "category-strip-sort-keys": "Bot: Tar bort sorteringsnycklar för genomförd åtgärd",
+ "category-strip-both": "Bot: Tar bort CFD-mallar och sorteringsnycklar för genomförd åtgärd",
"category-version-history": "Bot: Sparar versionshistorik från tidigare %(oldcat)s",
"category-was-disbanded": "Bot: Kategorin upplöstes",
"category-was-moved": "Bot: Kategori flyttades till [[:Category:%(newcat)s|%(title)s]]"
--
To view, visit https://gerrit.wikimedia.org/r/465339
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/i18n
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ic1cb786ebb607c54dc4bdb0d0c84ffd58b91bc99
Gerrit-Change-Number: 465339
Gerrit-PatchSet: 1
Gerrit-Owner: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: L10n-bot <l10n-bot(a)translatewiki.net>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/465040 )
Change subject: Fix output about API and MediaWiki version
......................................................................
Fix output about API and MediaWiki version
Word "api" changed to "API"
Change-Id: I9314de6a955fb69005f61d22744e5c163952d0f2
---
M generate_family_file.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/generate_family_file.py b/generate_family_file.py
index ab575bf..a73e3ec 100755
--- a/generate_family_file.py
+++ b/generate_family_file.py
@@ -48,7 +48,7 @@
w = Wiki(self.base_url)
self.wikis[w.lang] = w
print('\n=================================='
- '\napi url: {w.api}'
+ '\nAPI url: {w.api}'
'\nMediaWiki version: {w.version}'
'\n==================================\n'.format(w=w))
--
To view, visit https://gerrit.wikimedia.org/r/465040
To unsubscribe, or for help writing mail filters, visit https://gerrit.wikimedia.org/r/settings
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I9314de6a955fb69005f61d22744e5c163952d0f2
Gerrit-Change-Number: 465040
Gerrit-PatchSet: 1
Gerrit-Owner: Zoranzoki21 <zorandori4444(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)