Meno25 submitted this change.
[bugfix] AttributeError: 'str' object has no attribute 'formar'
Bug: T299844
Change-Id: I5474e24afe8a33f403234b70e3939319e919cf78
---
M pywikibot/textlib.py
1 file changed, 1 insertion(+), 1 deletion(-)
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 change 756070. To unsubscribe, or for help writing mail filters, visit settings.