Remove inherit from object

This commit is contained in:
Alex Forencich
2020-12-24 14:40:03 -08:00
parent 4b768e267d
commit 318f48785a
10 changed files with 16 additions and 16 deletions

View File

@@ -35,7 +35,7 @@ from .version import __version__
from .constants import EthPre, ETH_PREAMBLE
class GmiiFrame(object):
class GmiiFrame:
def __init__(self, data=None, error=None):
self.data = bytearray()
self.error = None
@@ -114,7 +114,7 @@ class GmiiFrame(object):
return bytes(self.data)
class GmiiSource(object):
class GmiiSource:
def __init__(self, data, er, dv, clock, reset=None, enable=None, mii_select=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")
@@ -243,7 +243,7 @@ class GmiiSource(object):
self.active = False
class GmiiSink(object):
class GmiiSink:
def __init__(self, data, er, dv, clock, reset=None, enable=None, mii_select=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")

View File

@@ -34,7 +34,7 @@ from .gmii import GmiiFrame
from .constants import EthPre
class MiiSource(object):
class MiiSource:
def __init__(self, data, er, dv, clock, reset=None, enable=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")
@@ -157,7 +157,7 @@ class MiiSource(object):
self.active = False
class MiiSink(object):
class MiiSink:
def __init__(self, data, er, dv, clock, reset=None, enable=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")

View File

@@ -32,7 +32,7 @@ from cocotb.triggers import RisingEdge
from .version import __version__
class PtpClock(object):
class PtpClock:
def __init__(
self,

View File

@@ -34,7 +34,7 @@ from .gmii import GmiiFrame
from .constants import EthPre
class RgmiiSource(object):
class RgmiiSource:
def __init__(self, data, ctrl, clock, reset=None, enable=None, mii_select=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")
@@ -169,7 +169,7 @@ class RgmiiSource(object):
self.ctrl <= en
class RgmiiSink(object):
class RgmiiSink:
def __init__(self, data, ctrl, clock, reset=None, enable=None, mii_select=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")

View File

@@ -35,7 +35,7 @@ from .version import __version__
from .constants import EthPre, ETH_PREAMBLE, XgmiiCtrl
class XgmiiFrame(object):
class XgmiiFrame:
def __init__(self, data=None, ctrl=None):
self.data = bytearray()
self.ctrl = None
@@ -117,7 +117,7 @@ class XgmiiFrame(object):
return bytes(self.data)
class XgmiiSource(object):
class XgmiiSource:
def __init__(self, data, ctrl, clock, reset=None, enable=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")
@@ -272,7 +272,7 @@ class XgmiiSource(object):
self.active = False
class XgmiiSink(object):
class XgmiiSink:
def __init__(self, data, ctrl, clock, reset=None, enable=None, *args, **kwargs):
self.log = logging.getLogger(f"cocotb.{data._path}")

View File

@@ -37,7 +37,7 @@ from cocotb.regression import TestFactory
from cocotbext.eth import GmiiFrame, GmiiSource, GmiiSink
class TB(object):
class TB:
def __init__(self, dut):
self.dut = dut

View File

@@ -37,7 +37,7 @@ from cocotb.regression import TestFactory
from cocotbext.eth import GmiiFrame, MiiSource, MiiSink
class TB(object):
class TB:
def __init__(self, dut):
self.dut = dut

View File

@@ -36,7 +36,7 @@ from cocotb.utils import get_sim_time
from cocotbext.eth import PtpClock
class TB(object):
class TB:
def __init__(self, dut):
self.dut = dut

View File

@@ -37,7 +37,7 @@ from cocotb.regression import TestFactory
from cocotbext.eth import GmiiFrame, RgmiiSource, RgmiiSink
class TB(object):
class TB:
def __init__(self, dut):
self.dut = dut

View File

@@ -38,7 +38,7 @@ from cocotb.regression import TestFactory
from cocotbext.eth import XgmiiFrame, XgmiiSource, XgmiiSink
class TB(object):
class TB:
def __init__(self, dut):
self.dut = dut