Remove inherit from object
This commit is contained in:
@@ -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}")
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -32,7 +32,7 @@ from cocotb.triggers import RisingEdge
|
||||
from .version import __version__
|
||||
|
||||
|
||||
class PtpClock(object):
|
||||
class PtpClock:
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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}")
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user