From 032c292e3d0d913c469bf6d9f0a51b3abc38bf46 Mon Sep 17 00:00:00 2001 From: Ronald Evers Date: Wed, 9 Oct 2013 23:20:42 +0200 Subject: remove unused kwarg rexpattern from IniReader._replace --- tox/_config.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tox/_config.py b/tox/_config.py index 1dfef66..3836f02 100644 --- a/tox/_config.py +++ b/tox/_config.py @@ -621,14 +621,13 @@ class IniReader: 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): -- cgit v1.2.1