1. Marc Abramowitz
  2. tox

Commits

holger krekel  committed a4afeff

fix random commit bug from last change

  • Participants
  • Parent commits 17c0fb2
  • Branches default

Comments (0)

Files changed (1)

File tox/_config.py

View file
  • Ignore whitespace
     def _processcommand(self, command):
         posargs = self._subs.get('_posargs', None)
 
-        expression = r'\{(?:(?P<sub_type>[^:]+):?)?(?P<substitution_value>.*)\}'
+        pat = r'\{(?:(?P<sub_type>[^:]+):)?(?P<substitution_value>.*)\}'
 
         words = list(CommandParser(command).words())
 
                     new_command += ' '.join(posargs)
                 continue
 
-            new_word = re.sub(expression, self._replace_match, word)
+            new_word = re.sub(pat, self._replace_match, word)
             # two passes; we might have substitutions in the result
-            new_word = re.sub(expression, self._replace_match, new_word)
+            new_word = re.sub(pat, self._replace_match, new_word)
             new_command += new_word
 
         argv = shlex.split(new_command.strip())