jenkins-bot has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/800934 )
Change subject: [bugfix] Solve E1123: unexpected keyword argument in function call ......................................................................
[bugfix] Solve E1123: unexpected keyword argument in function call
Change-Id: I74a721a70ee13336e6385ed08aaec0f5baf1751d --- M scripts/dataextend.py 1 file changed, 3 insertions(+), 2 deletions(-)
Approvals: D3r1ck01: Looks good to me, approved jenkins-bot: Verified
diff --git a/scripts/dataextend.py b/scripts/dataextend.py index 5792aee..c674835 100644 --- a/scripts/dataextend.py +++ b/scripts/dataextend.py @@ -12591,10 +12591,11 @@ '<label>{}:</label>(.*?)<(?:label|<h3 class="underscratch)' .format(field), html, dtype)
- def getvalues(self, field, html, dtype=None) -> List[str]: + def getvalues(self, field, html, dtype=None, alt=None) -> List[str]: section = self.getvalue(field, html) if section: - return self.findallbyre('>([^<>]+)<', section, dtype) + return self.findallbyre('>([^<>]+)<', section, + dtype=dtype, alt=alt) return []
def findinstanceof(self, html):
pywikibot-commits@lists.wikimedia.org