Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: m-labs/migen
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 9228a7441800
Choose a base ref
...
head repository: m-labs/migen
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 2b0d76a54b15
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 5, 2016

  1. Copy the full SHA
    9e76fee View commit details

Commits on Nov 7, 2016

  1. Copy the full SHA
    2b0d76a View commit details
Showing with 4 additions and 2 deletions.
  1. +2 −1 migen/fhdl/decorators.py
  2. +2 −1 migen/fhdl/structure.py
3 changes: 2 additions & 1 deletion migen/fhdl/decorators.py
Original file line number Diff line number Diff line change
@@ -28,7 +28,8 @@ def get_fragment(i):
return f

Wrapped.__name__ = victim.__name__
# "{}_{}".format(self.__class__.__name__, victim.__name__)
Wrapped.__doc__ = victim.__doc__
Wrapped.__module__ = victim.__module__
return Wrapped

def wrap_instance(self, victim):
3 changes: 2 additions & 1 deletion migen/fhdl/structure.py
Original file line number Diff line number Diff line change
@@ -136,7 +136,8 @@ def wrap(value):
if isinstance(value, (bool, int)):
value = Constant(value)
if not isinstance(value, _Value):
raise TypeError("Object '" + str(value) + "'is not a Migen value")
raise TypeError("Object '{}' of type {} is not a Migen value"
.format(value, type(value)))
return value