Ticket #5270: empty-string.patch
File empty-string.patch, 782 bytes (added by , 16 years ago) |
---|
-
template/__init__.py
485 485 (token[:upto], token[upto:start], token[start:])) 486 486 if var == None: 487 487 var, constant, i18n_constant = match.group("var", "constant", "i18n_constant") 488 if i18n_constant :488 if i18n_constant is not None: 489 489 var = '"%s"' % _(i18n_constant.replace(r'\"', '"')) 490 elif constant :490 elif constant is not None: 491 491 var = '"%s"' % constant.replace(r'\"', '"') 492 492 upto = match.end() 493 493 if var == None: