Commit d156ecb0 authored by Michal Čihař's avatar Michal Čihař

Do not access private members

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 66573b86
...@@ -143,9 +143,9 @@ class DjangoTranslation(django_trans.DjangoTranslation): ...@@ -143,9 +143,9 @@ class DjangoTranslation(django_trans.DjangoTranslation):
result = _EmptyClass() result = _EmptyClass()
result.__class__ = self.__class__ result.__class__ = self.__class__
state = self.__dict__ state = self.__dict__
state['_info'] = self._info.copy()
state['_catalog'] = self._catalog.copy()
result.__dict__.update(state) result.__dict__.update(state)
result._info = self._info.copy()
result._catalog = self._catalog.copy()
return result return result
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment