diff options
Diffstat (limited to 'django/template/base.py')
| -rw-r--r-- | django/template/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py index 25a42531fd..686a18ef2d 100644 --- a/django/template/base.py +++ b/django/template/base.py @@ -232,7 +232,7 @@ class Token(object): bits = iter(smart_split(self.contents)) for bit in bits: # Handle translation-marked template pieces - if bit.startswith('_("') or bit.startswith("_('"): + if bit.startswith(('_("', "_('")): sentinal = bit[2] + ')' trans_bit = [bit] while not bit.endswith(sentinal): |
