mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +01:00
Make i18n.InternationalizeString use less memory.
This commit is contained in:
parent
de3265ed58
commit
38e7589ff3
@ -353,7 +353,7 @@ class InternationalizedFunction:
|
|||||||
class InternationalizedString(str):
|
class InternationalizedString(str):
|
||||||
"""Simple subclass to str, that allow to add attributes. Also used to
|
"""Simple subclass to str, that allow to add attributes. Also used to
|
||||||
know if a string is already localized"""
|
know if a string is already localized"""
|
||||||
pass
|
__slots__ = ('_original', '_internationalizer')
|
||||||
|
|
||||||
def internationalizeDocstring(obj):
|
def internationalizeDocstring(obj):
|
||||||
"""Decorates functions and internationalize their docstring.
|
"""Decorates functions and internationalize their docstring.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user