Commit a5a121d2 authored by adam j hartz's avatar adam j hartz

switch back to $XX syntax for arguments instead of $ARGXX

parent b6958509
......@@ -172,7 +172,7 @@ class Env(MutableMapping):
use in a subprocess.
"""
_arg_regex = re.compile(r'ARG(\d+)')
_arg_regex = re.compile(r'(\d+)')
def __init__(self, *args, **kwargs):
"""If no initial environment is given, os.environ is used."""
......
......@@ -706,7 +706,7 @@ def _tokenize(readline, encoding):
break
else: # ordinary string
yield TokenInfo(STRING, token, spos, epos, line)
elif token.startswith('$') and token[1:].isidentifier():
elif token.startswith('$'):
yield TokenInfo(DOLLARNAME, token, spos, epos, line)
elif initial.isidentifier(): # ordinary name
if token in ('async', 'await'):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment