From 85e895249c0f188bc5b3f96954eb006a2d736a5e Mon Sep 17 00:00:00 2001
From: Manuel Guenther <manuel.guenther@idiap.ch>
Date: Thu, 25 Jun 2015 10:41:24 +0200
Subject: [PATCH] Trial to make documentation py3 compatible

---
 bob/bio/base/utils/singleton.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/bob/bio/base/utils/singleton.py b/bob/bio/base/utils/singleton.py
index cfcce7a5..9a2092c4 100644
--- a/bob/bio/base/utils/singleton.py
+++ b/bob/bio/base/utils/singleton.py
@@ -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
-- 
GitLab