Commit 85e89524 authored by Manuel Günther's avatar Manuel Günther
Browse files

Trial to make documentation py3 compatible

parent 1a20a579
......@@ -17,9 +17,10 @@ class Singleton:
def __init__(self, decorated):
self._decorated = decorated
import functools
for attr in functools.WRAPPER_ASSIGNMENTS:
setattr(self, attr, getattr(decorated, attr))
# see: functools.WRAPPER_ASSIGNMENTS:
self.__doc__ = decorated.__doc__
self.__name__ = decorated.__name__
self.__module__ = decorated.__module__
self.__bases__ = []
self._instance = None
......
Supports Markdown
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