Ticket #2636: __init__.py.diff
File __init__.py.diff, 1.1 KB (added by , 18 years ago) |
---|
-
__init__.py
464 464 465 465 466 466 filter_raw_string = r""" 467 ^%(i18n_open)s "(?P<i18n_constant>%(str)s)"%(i18n_close)s|468 ^ "(?P<constant>%(str)s)"|467 ^%(i18n_open)s%(quote)s(?P<i18n_constant>%(str)s)%(quote)s%(i18n_close)s| 468 ^%(quote)s(?P<constant>%(str)s)%(quote)s| 469 469 ^(?P<var>[%(var_chars)s]+)| 470 470 (?:%(filter_sep)s 471 471 (?P<filter_name>\w+) 472 472 (?:%(arg_sep)s 473 473 (?: 474 %(i18n_open)s "(?P<i18n_arg>%(str)s)"%(i18n_close)s|475 "(?P<constant_arg>%(str)s)"|474 %(i18n_open)s%(quote)s(?P<i18n_arg>%(str)s)%(quote)s%(i18n_close)s| 475 %(quote)s(?P<constant_arg>%(str)s)%(quote)s| 476 476 (?P<var_arg>[%(var_chars)s]+) 477 477 ) 478 478 )? … … 483 483 'arg_sep': re.escape(FILTER_ARGUMENT_SEPARATOR), 484 484 'i18n_open' : re.escape("_("), 485 485 'i18n_close' : re.escape(")"), 486 'quote': r"""['"]""", 486 487 } 487 488 488 489 filter_raw_string = filter_raw_string.replace("\n", "").replace(" ", "")