jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/530562 )
Change subject: [doc] Update HISTORY.rst
......................................................................
[doc] Update HISTORY.rst
Change-Id: I8443c1cafa246a4d902ac0ce126d77cea166d952
---
M HISTORY.rst
1 file changed, 2 insertions(+), 0 deletions(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/HISTORY.rst b/HISTORY.rst
index daaa7f4..d5a3d3d 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -4,6 +4,8 @@
Current release
---------------
+* Add allowusertalk to the User.block() options (T229288)
+* botirc module will be removed in next release (T212632)
* weblib module will be removed in next release (T85001)
* Bugfixes and improvements
* Localisation updates
--
To view, visit https://gerrit.wikimedia.org/r/530562
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: I8443c1cafa246a4d902ac0ce126d77cea166d952
Gerrit-Change-Number: 530562
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info(a)gno.de>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/530102 )
Change subject: coordinate_import: fix typo in comment
......................................................................
coordinate_import: fix typo in comment
Change-Id: I6fab92b9717761d4fcf48fee8816ed051f8bfb0b
---
M scripts/coordinate_import.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Mpaa: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/coordinate_import.py b/scripts/coordinate_import.py
index ea4c46a..5e4fe61 100755
--- a/scripts/coordinate_import.py
+++ b/scripts/coordinate_import.py
@@ -23,7 +23,7 @@
You can also run over a set of items on the repo without coordinates and
try to import them from any connected page. To do this, you need to
-explictly provide the repo as the site using -lang a -family arguments.
+explicitly provide the repo as the site using -lang a -family arguments.
Example:
python pwb.py coordinate_import -lang:wikidata -family:wikidata \
--
To view, visit https://gerrit.wikimedia.org/r/530102
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: I6fab92b9717761d4fcf48fee8816ed051f8bfb0b
Gerrit-Change-Number: 530102
Gerrit-PatchSet: 1
Gerrit-Owner: Simon04 <Simon.Legner(a)gmail.com>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: jenkins-bot (75)
jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/529839 )
Change subject: flake8: fix error C412-Unnecessary list comprehension
......................................................................
flake8: fix error C412-Unnecessary list comprehension
Fix flake8 error:
- C412 Unnecessary list comprehension - 'in' can take a generator.
Change-Id: I2d64b7e97d4683fa93441e48e12deac91d0d859a
---
M pywikibot/site.py
M scripts/interwiki.py
2 files changed, 4 insertions(+), 4 deletions(-)
Approvals:
Dalba: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/site.py b/pywikibot/site.py
index d66b5d2..53928d7 100644
--- a/pywikibot/site.py
+++ b/pywikibot/site.py
@@ -255,7 +255,7 @@
@rtype: bool
"""
- return name in [x.lower() for x in self._distinct()]
+ return name in (x.lower() for x in self._distinct())
def __contains__(self, item):
"""Determine if item is a name of this namespace.
@@ -4382,7 +4382,7 @@
def isBot(self, username):
"""Return True is username is a bot user."""
- return username in [userdata['name'] for userdata in self.botusers()]
+ return username in (userdata['name'] for userdata in self.botusers())
@deprecated_args(step=None)
def botusers(self, total=None):
diff --git a/scripts/interwiki.py b/scripts/interwiki.py
index 3e521c5..3a1d7f0 100755
--- a/scripts/interwiki.py
+++ b/scripts/interwiki.py
@@ -1355,8 +1355,8 @@
# Ignore the interwiki links.
iw = ()
if self.conf.lacklanguage:
- if self.conf.lacklanguage in [link.site.lang
- for link in iw]:
+ if self.conf.lacklanguage in (link.site.lang
+ for link in iw):
iw = ()
self.workonme = False
if len(iw) < self.conf.minlinks:
--
To view, visit https://gerrit.wikimedia.org/r/529839
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: I2d64b7e97d4683fa93441e48e12deac91d0d859a
Gerrit-Change-Number: 529839
Gerrit-PatchSet: 1
Gerrit-Owner: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: D3r1ck01 <xsavitar.wiki(a)aol.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
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: 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/528114 )
Change subject: [bugfix] Make sure that header regex doesn't span multiple lines
......................................................................
[bugfix] Make sure that header regex doesn't span multiple lines
The regex for removeDisabledParts is compiled with dotall (singleline)
flag. This made the dot match across lines and remove the content between
the first and last headline.
Change-Id: Ia9151ca97fbf8c5b98aeb952324ed6e03473b94c
---
M pywikibot/textlib.py
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py
index 990d40c..b921002 100644
--- a/pywikibot/textlib.py
+++ b/pywikibot/textlib.py
@@ -267,7 +267,7 @@
# section headers
'header': re.compile(
r'(?:(?<=\n)|\A)(?:<!--[\s\S]*?-->)*'
- r'=(?:.|<!--[\s\S]*?-->)+='
+ r'=(?:[^\n]|<!--[\s\S]*?-->)+='
r' *(?:<!--[\s\S]*?--> *)*(?=\n|\Z)'),
# external links
'hyperlink': compileLinkR(),
--
To view, visit https://gerrit.wikimedia.org/r/528114
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: Ia9151ca97fbf8c5b98aeb952324ed6e03473b94c
Gerrit-Change-Number: 528114
Gerrit-PatchSet: 1
Gerrit-Owner: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Dalba <dalba.wiki(a)gmail.com>
Gerrit-Reviewer: Dvorapa <dvorapa(a)seznam.cz>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Matěj Suchánek <matejsuchanek97(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot (75)