Skip to content
Snippets Groups Projects
Commit 85e89524 authored by Manuel Günther's avatar Manuel Günther
Browse files

Trial to make documentation py3 compatible

parent 1a20a579
No related branches found
No related tags found
No related merge requests found
...@@ -17,9 +17,10 @@ class Singleton: ...@@ -17,9 +17,10 @@ class Singleton:
def __init__(self, decorated): def __init__(self, decorated):
self._decorated = decorated self._decorated = decorated
import functools # see: functools.WRAPPER_ASSIGNMENTS:
for attr in functools.WRAPPER_ASSIGNMENTS: self.__doc__ = decorated.__doc__
setattr(self, attr, getattr(decorated, attr)) self.__name__ = decorated.__name__
self.__module__ = decorated.__module__
self.__bases__ = [] self.__bases__ = []
self._instance = None self._instance = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment