mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Make the translation proxy pickle proof.
This commit is contained in:
parent
9116cf9779
commit
0dd83d9ee4
@ -32,6 +32,9 @@ class _TranslationProxy(UserString.UserString, object):
|
||||
return unicode(func)
|
||||
return object.__new__(cls)
|
||||
|
||||
def __getnewargs__(self):
|
||||
return (self._func,) + self._args
|
||||
|
||||
def __init__(self, func, *args):
|
||||
self._func = func
|
||||
self._args = args
|
||||
|
Loading…
Reference in New Issue
Block a user