Mpaa has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/308438

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/38/308438/1

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: newchange
Gerrit-Change-Id: Ibcee8691ceae2ec2c2c3678960527c14c55fb142
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Mpaa <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to