From bc61377ee18c358b45ab07648161bef7816825dd Mon Sep 17 00:00:00 2001 From: whitequark Date: Wed, 24 Apr 2019 15:02:30 +0000 Subject: [PATCH] build.dsl: style. NFC. --- nmigen/build/dsl.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nmigen/build/dsl.py b/nmigen/build/dsl.py index 7fcdb94..9205a1b 100644 --- a/nmigen/build/dsl.py +++ b/nmigen/build/dsl.py @@ -27,7 +27,7 @@ class DiffPairs: "and {!r} do not" .format(self.p, self.n)) - self.dir = self.p.dir + self.dir = dir def __repr__(self): return "(diffpairs {} {})".format(self.p, self.n) @@ -73,9 +73,10 @@ class Subsignal: class Resource(Subsignal): def __init__(self, name, number, *io, extras=()): - self.number = number super().__init__(name, *io, extras=extras) + self.number = number + def __repr__(self): return "(resource {} {} {} {})".format(self.name, self.number, " ".join(map(repr, self.io)), -- 2.30.2