From 8dc817dd706d2192a25cce9ef0741ab329d59169 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 13 Apr 2015 10:31:18 +0200 Subject: [PATCH] liteeth: pep8 (E231) --- misoclib/com/liteeth/test/model/arp.py | 2 +- misoclib/com/liteeth/test/model/etherbone.py | 4 ++-- misoclib/com/liteeth/test/model/icmp.py | 2 +- misoclib/com/liteeth/test/model/ip.py | 2 +- misoclib/com/liteeth/test/model/mac.py | 2 +- misoclib/com/liteeth/test/model/udp.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/misoclib/com/liteeth/test/model/arp.py b/misoclib/com/liteeth/test/model/arp.py index 82a32b06..97e21524 100644 --- a/misoclib/com/liteeth/test/model/arp.py +++ b/misoclib/com/liteeth/test/model/arp.py @@ -35,7 +35,7 @@ class ARPPacket(Packet): def __repr__(self): r = "--------\n" for k in sorted(arp_header.keys()): - r += k + " : 0x{:0x}\n".format(getattr(self,k)) + r += k + " : 0x{:0x}\n".format(getattr(self, k)) r += "payload: " for d in self: r += "{:02x}".format(d) diff --git a/misoclib/com/liteeth/test/model/etherbone.py b/misoclib/com/liteeth/test/model/etherbone.py index 0cf63614..ad8ed747 100644 --- a/misoclib/com/liteeth/test/model/etherbone.py +++ b/misoclib/com/liteeth/test/model/etherbone.py @@ -207,7 +207,7 @@ class EtherboneRecord(Packet): r += "{:02x}".format(d) else: for k in sorted(etherbone_record_header.keys()): - r += k + " : 0x{:0x}\n".format(getattr(self,k)) + r += k + " : 0x{:0x}\n".format(getattr(self, k)) if self.wcount != 0: r += self.writes.__repr__() if self.rcount != 0: @@ -277,7 +277,7 @@ class EtherbonePacket(Packet): r += "{:02x}".format(d) else: for k in sorted(etherbone_packet_header.keys()): - r += k + " : 0x{:0x}\n".format(getattr(self,k)) + r += k + " : 0x{:0x}\n".format(getattr(self, k)) for i, record in enumerate(self.records): r += record.__repr__(i) return r diff --git a/misoclib/com/liteeth/test/model/icmp.py b/misoclib/com/liteeth/test/model/icmp.py index c89c244b..e8125fd3 100644 --- a/misoclib/com/liteeth/test/model/icmp.py +++ b/misoclib/com/liteeth/test/model/icmp.py @@ -33,7 +33,7 @@ class ICMPPacket(Packet): def __repr__(self): r = "--------\n" for k in sorted(icmp_header.keys()): - r += k + " : 0x{:0x}\n".format(getattr(self,k)) + r += k + " : 0x{:0x}\n".format(getattr(self, k)) r += "payload: " for d in self: r += "{:02x}".format(d) diff --git a/misoclib/com/liteeth/test/model/ip.py b/misoclib/com/liteeth/test/model/ip.py index 165f1e0d..dec63391 100644 --- a/misoclib/com/liteeth/test/model/ip.py +++ b/misoclib/com/liteeth/test/model/ip.py @@ -59,7 +59,7 @@ class IPPacket(Packet): def __repr__(self): r = "--------\n" for k in sorted(ipv4_header.keys()): - r += k + " : 0x{:0x}\n".format(getattr(self,k)) + r += k + " : 0x{:0x}\n".format(getattr(self, k)) r += "payload: " for d in self: r += "{:02x}".format(d) diff --git a/misoclib/com/liteeth/test/model/mac.py b/misoclib/com/liteeth/test/model/mac.py index 6c06390d..47693a73 100644 --- a/misoclib/com/liteeth/test/model/mac.py +++ b/misoclib/com/liteeth/test/model/mac.py @@ -80,7 +80,7 @@ class MACPacket(Packet): def __repr__(self): r = "--------\n" for k in sorted(mac_header.keys()): - r += k + " : 0x{:0x}\n".format(getattr(self,k)) + r += k + " : 0x{:0x}\n".format(getattr(self, k)) r += "payload: " for d in self: r += "{:02x}".format(d) diff --git a/misoclib/com/liteeth/test/model/udp.py b/misoclib/com/liteeth/test/model/udp.py index c69b6c8c..58456eac 100644 --- a/misoclib/com/liteeth/test/model/udp.py +++ b/misoclib/com/liteeth/test/model/udp.py @@ -33,7 +33,7 @@ class UDPPacket(Packet): def __repr__(self): r = "--------\n" for k in sorted(udp_header.keys()): - r += k + " : 0x{:0x}\n".format(getattr(self,k)) + r += k + " : 0x{:0x}\n".format(getattr(self, k)) r += "payload: " for d in self: r += "{:02x}".format(d) -- 2.30.2