Replace deprecated inspect.getargspec with inspect.getfullargspec.
This commit is contained in:
parent
6b8a35a2f8
commit
62ea48940a
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue