Ticket #300: 26compat.diff
| File 26compat.diff, 0.7 KB (added by chrism, 4 years ago) |
|---|
-
copydir.py
421 421 class LaxTemplate(string.Template): 422 422 # This change of pattern allows for anything in braces, but 423 423 # only identifiers outside of braces: 424 pattern = re.compile(r"""424 pattern = """ 425 425 \$(?: 426 426 (?P<escaped>\$) | # Escape sequence of two delimiters 427 427 (?P<named>[_a-z][_a-z0-9]*) | # delimiter and a Python identifier 428 428 {(?P<braced>.*?)} | # delimiter and a braced identifier 429 429 (?P<invalid>) # Other ill-formed delimiter exprs 430 430 ) 431 """ , re.VERBOSE | re.IGNORECASE)431 """
