Make i18n.InternationalizeString use less memory.

This commit is contained in:
Valentin Lorentz 2016-02-20 09:51:24 +01:00
parent de3265ed58
commit 38e7589ff3

View File

@ -353,7 +353,7 @@ class InternationalizedFunction:
class InternationalizedString(str):
"""Simple subclass to str, that allow to add attributes. Also used to
know if a string is already localized"""
pass
__slots__ = ('_original', '_internationalizer')
def internationalizeDocstring(obj):
"""Decorates functions and internationalize their docstring.