Meno25 has submitted this change. ( https://gerrit.wikimedia.org/r/c/pywikibot/core/+/756070 )
Change subject: [bugfix] AttributeError: 'str' object has no attribute 'formar' ......................................................................
[bugfix] AttributeError: 'str' object has no attribute 'formar'
Bug: T299844 Change-Id: I5474e24afe8a33f403234b70e3939319e919cf78 --- M pywikibot/textlib.py 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: JJMC89: Looks good to me, approved Meno25: Verified
diff --git a/pywikibot/textlib.py b/pywikibot/textlib.py index 7875f4e..da69210 100644 --- a/pywikibot/textlib.py +++ b/pywikibot/textlib.py @@ -1187,7 +1187,7 @@ lastpart = parts[-1] if re.match(r'\s*{}'.format(marker), lastpart): # Put the langlinks back into the noinclude's - regexp = re.compile(r'{}\s*{}'.formar(includeOff, marker)) + regexp = re.compile(r'{}\s*{}'.format(includeOff, marker)) newtext = regexp.sub(s + includeOff, s2) else: # Put the langlinks at the end, inside noinclude's
pywikibot-commits@lists.wikimedia.org