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

--
To view, visit https://gerrit.wikimedia.org/r/c/pywikibot/core/+/756070
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.wikimedia.org/r/settings

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I5474e24afe8a33f403234b70e3939319e919cf78
Gerrit-Change-Number: 756070
Gerrit-PatchSet: 2
Gerrit-Owner: Meno25 <[email protected]>
Gerrit-Reviewer: JJMC89 <[email protected]>
Gerrit-Reviewer: Meno25 <[email protected]>
Gerrit-Reviewer: Xqt <[email protected]>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged
_______________________________________________
Pywikibot-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to