Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.base
Commits
85e89524
Commit
85e89524
authored
Jun 25, 2015
by
Manuel Günther
Browse files
Trial to make documentation py3 compatible
parent
1a20a579
Changes
1
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/utils/singleton.py
View file @
85e89524
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment