From: Florent Kermarrec Date: Mon, 13 Apr 2015 12:34:36 +0000 (+0200) Subject: liteusb: pep8 (E225) X-Git-Tag: 24jan2021_ls180~2344 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5343537fc2a7f015b4e18707b068dc1d0422caea;p=litex.git liteusb: pep8 (E225) --- diff --git a/misoclib/com/liteusb/core/depacketizer.py b/misoclib/com/liteusb/core/depacketizer.py index 4d592e1e..77a8ad9c 100644 --- a/misoclib/com/liteusb/core/depacketizer.py +++ b/misoclib/com/liteusb/core/depacketizer.py @@ -114,7 +114,7 @@ class DepacketizerSourceModel(Module, Source, RandRun): self._stb = 1 if selfp.stb and selfp.ack: - self._cnt +=1 + self._cnt += 1 selfp.stb = self._stb selfp.d = self.data[self._cnt] diff --git a/misoclib/com/liteusb/core/packetizer.py b/misoclib/com/liteusb/core/packetizer.py index dc4b9fe1..ebd5bf1f 100644 --- a/misoclib/com/liteusb/core/packetizer.py +++ b/misoclib/com/liteusb/core/packetizer.py @@ -138,7 +138,7 @@ class TB(Module): self.submodules.dut = LiteUSBPacketizer() self.submodules.sink = PacketizerSinkModel() - self.comb +=[ + self.comb += [ self.source.connect(self.dut.sink), self.dut.source.connect(self.sink), ] diff --git a/misoclib/com/liteusb/phy/ft2232h.py b/misoclib/com/liteusb/phy/ft2232h.py index e7511b45..cc5b4005 100644 --- a/misoclib/com/liteusb/phy/ft2232h.py +++ b/misoclib/com/liteusb/phy/ft2232h.py @@ -284,7 +284,7 @@ def print_results(s, l1, l2): try: for i, val in enumerate(l1): if val != l2[i]: - print(s + " : val : %02X, exp : %02X" %(val, l2[i])) + print(s + " : val : {:02X}, exp : {:02X}".format(val, l2[i])) r = False except: return r