Replace deprecated inspect.getargspec with inspect.getfullargspec.

This commit is contained in:
Joey Bushagour 2021-06-15 08:03:11 -05:00
parent 6b8a35a2f8
commit 62ea48940a
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ def soc_sdram_args(parser):
def soc_sdram_argdict(args):
r = soc_core_argdict(args)
for a in inspect.getargspec(SoCSDRAM.__init__).args:
for a in inspect.getfullargspec(SoCSDRAM.__init__).args:
if a not in ["self", "platform", "clk_freq"]:
arg = getattr(args, a, None)
if arg is not None:

View File

@ -337,7 +337,7 @@ def soc_core_args(parser):
def soc_core_argdict(args):
r = dict()
for a in inspect.getargspec(SoCCore.__init__).args:
for a in inspect.getfullargspec(SoCCore.__init__).args:
if a not in ["self", "platform"]:
if a in ["with_uart", "with_timer", "with_ctrl"]:
arg = not getattr(args, a.replace("with", "no"), True)