jenkins-bot has submitted this change and it was merged.
Change subject: replace.py: add get_inside_exception to ReplacementListEntry
......................................................................
replace.py: add get_inside_exception to ReplacementListEntry
ReplacementListEntry inherits from ReplacementBase, it it does not
inherit get_inside_exception from Replacement.
Bug: T144697
Change-Id: Ibcee8691ceae2ec2c2c3678960527c14c55fb142
---
M scripts/replace.py
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Xqt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/scripts/replace.py b/scripts/replace.py
index e03d935..f0945f2 100755
--- a/scripts/replace.py
+++ b/scripts/replace.py
@@ -392,6 +392,10 @@
super(ReplacementListEntry, self)._compile(use_regex, flags)
self.fix_set._compile_exceptions(use_regex, flags)
+ def get_inside_exceptions(self):
+ """Get exceptions on text (inside exceptions)."""
+ return _get_text_exceptions(self.fix_set.exceptions or {})
+
class XmlDumpReplacePageGenerator(object):
--
To view, visit
https://gerrit.wikimedia.org/r/308438
To unsubscribe, visit
https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ibcee8691ceae2ec2c2c3678960527c14c55fb142
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <mpaa.wiki(a)gmail.com>
Gerrit-Reviewer: John Vandenberg <jayvdb(a)gmail.com>
Gerrit-Reviewer: Xqt <info(a)gno.de>
Gerrit-Reviewer: jenkins-bot <>