From: Cesar Strauss Date: Wed, 8 Sep 2021 09:25:18 +0000 (-0300) Subject: Remove default argument for dict.get() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80b9185f9a6c64fa7181ee707346d3a10aea4c9a;p=soc.git Remove default argument for dict.get() 1) The default is already None. 2) It really doesn't accept keyword arguments --- 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)