From 38e7589ff3252a43aef3927f3b6c965788812b8a Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 20 Feb 2016 09:51:24 +0100 Subject: [PATCH] Make i18n.InternationalizeString use less memory. --- src/i18n.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i18n.py b/src/i18n.py index 0831ab80c..eb7150bd1 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -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.