Commits

Ronald Evers committed 1f45160

remove unused kwarg rexpattern from IniReader._replace

Comments (0)

Files changed (1)

     def _replace_match_no_quote(self, match):
         return self._replace_match(match, quote=False)
 
-    def _replace(self, x, rexpattern=RE_ITEM_REF, quote=False):
-        # XXX is rexpattern used by callers? can it be removed?
+    def _replace(self, x, quote=False):
         if '{' in x:
             if quote:
                 replace_func = self._replace_match_quote
             else:
                 replace_func = self._replace_match_no_quote
-            return rexpattern.sub(replace_func, x)
+            return RE_ITEM_REF.sub(replace_func, x)
         return x
 
     def _parse_command(self, command):