Skip to content

Commit

Permalink
replace.py: add get_inside_exception to ReplacementListEntry
Browse files Browse the repository at this point in the history
ReplacementListEntry inherits from ReplacementBase, it it does not
inherit get_inside_exception from Replacement.

Bug: T144697
Change-Id: Ibcee8691ceae2ec2c2c3678960527c14c55fb142
  • Loading branch information
Mpaa committed Sep 4, 2016
1 parent 81dd970 commit 7341ca8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/replace.py
Expand Up @@ -392,6 +392,10 @@ def _compile(self, use_regex, flags):
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):

Expand Down

0 comments on commit 7341ca8

Please sign in to comment.