Merge pull request #943 from JosephBushagour/jbushagour_getargspec_fix

Replace deprecated inspect.getargspec with inspect.getfullargspec.
This commit is contained in:
enjoy-digital 2021-06-16 14:59:39 +02:00 committed by GitHub
commit aad64bbf9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)