From 80b9185f9a6c64fa7181ee707346d3a10aea4c9a Mon Sep 17 00:00:00 2001 From: Cesar Strauss Date: Wed, 8 Sep 2021 06:25:18 -0300 Subject: [PATCH] Remove default argument for dict.get() 1) The default is already None. 2) It really doesn't accept keyword arguments --- src/soc/fu/compunits/compunits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/soc/fu/compunits/compunits.py b/src/soc/fu/compunits/compunits.py index bdb0847d..ecac38e0 100644 --- a/src/soc/fu/compunits/compunits.py +++ b/src/soc/fu/compunits/compunits.py @@ -293,7 +293,7 @@ class AllFunctionUnits(Elaboratable): self.excs[name] = alu.exc_o def get_exc(self, name): - return self.excs.get(name, default=None) + return self.excs.get(name) def get_fu(self, name): return self.fus.get(name) -- 2.30.2