diff --git a/analytic_structure.py b/analytic_structure.py index b6c6f2dda5b20fdcd58713d7aab434ffbfac1377_YW5hbHl0aWNfc3RydWN0dXJlLnB5..924a771ece9dea329aad0a5edcf2d3f54634340d_YW5hbHl0aWNfc3RydWN0dXJlLnB5 100644 --- a/analytic_structure.py +++ b/analytic_structure.py @@ -235,7 +235,7 @@ ans_dict = self.get_dimensions_names(model) - regex = '{pre}(\d+)_{suf}'.format(pre=prefix, suf=suffix) + regex = r'{pre}(\d+)_{suf}'.format(pre=prefix, suf=suffix) match_fct = re.compile(regex).search matches = filter(None, map(match_fct, fields.keys())) @@ -290,7 +290,7 @@ ans_dict = self.get_dimensions_names(model) found_fields = {slot: False for slot in ans_dict} - regex = '{pre}(\d+)_{suf}'.format(pre=prefix, suf=suffix) + regex = r'{pre}(\d+)_{suf}'.format(pre=prefix, suf=suffix) path = "//field[re:match(@name, '{0}')]".format(regex) ns = {"re": "http://exslt.org/regular-expressions"}