Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Kestrel Collaboration
Kestrel LiteX
migen
Commits
2b0d76a5
Commit
2b0d76a5
authored
8 years ago
by
Robert Jordens
Browse files
Options
Download
Email Patches
Plain Diff
decorators: inherit docstring and module
parent
9e76fee6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
migen/fhdl/decorators.py
migen/fhdl/decorators.py
+2
-1
No files found.
migen/fhdl/decorators.py
View file @
2b0d76a5
...
@@ -28,7 +28,8 @@ class ModuleTransformer:
...
@@ -28,7 +28,8 @@ class ModuleTransformer:
return
f
return
f
Wrapped
.
__name__
=
victim
.
__name__
Wrapped
.
__name__
=
victim
.
__name__
# "{}_{}".format(self.__class__.__name__, victim.__name__)
Wrapped
.
__doc__
=
victim
.
__doc__
Wrapped
.
__module__
=
victim
.
__module__
return
Wrapped
return
Wrapped
def
wrap_instance
(
self
,
victim
):
def
wrap_instance
(
self
,
victim
):
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
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