From ea95eeaf0d5b36baf859a07435dcdfbed47d18b1 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Tue, 16 Nov 2021 17:01:31 -0800 Subject: [PATCH] Don't pass through extra positional args --- cocotbext/axi/memory.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cocotbext/axi/memory.py b/cocotbext/axi/memory.py index 8c9abb2..03c2876 100644 --- a/cocotbext/axi/memory.py +++ b/cocotbext/axi/memory.py @@ -28,13 +28,13 @@ from .utils import hexdump, hexdump_lines, hexdump_str class Memory: - def __init__(self, size=1024, mem=None, *args, **kwargs): + def __init__(self, size=1024, mem=None, **kwargs): if mem is not None: self.mem = mem else: self.mem = mmap.mmap(-1, size) self.size = len(self.mem) - super().__init__(*args, **kwargs) + super().__init__(**kwargs) def read(self, address, length): self.mem.seek(address)