Fixed #19160 -- Made lazy plural translations usable.

Many thanks to Alexey Boriskin, Claude Paroz and Julien Phalip.
This commit is contained in:
Aymeric Augustin 2013-01-30 20:28:16 +01:00
parent 47ddd6a408
commit 3f1a0c0040
7 changed files with 143 additions and 9 deletions

View file

@ -157,8 +157,7 @@ def lazy(func, *resultclasses):
return bytes(self) % rhs
elif self._delegate_text:
return six.text_type(self) % rhs
else:
raise AssertionError('__mod__ not supported for non-string types')
return self.__cast() % rhs
def __deepcopy__(self, memo):
# Instances of this class are effectively immutable. It's just a