Remove default argument for dict.get()
authorCesar Strauss <cestrauss@gmail.com>
Wed, 8 Sep 2021 09:25:18 +0000 (06:25 -0300)
committerCesar Strauss <cestrauss@gmail.com>
Wed, 8 Sep 2021 09:25:18 +0000 (06:25 -0300)
1) The default is already None.
2) It really doesn't accept keyword arguments

src/soc/fu/compunits/compunits.py

index bdb0847dd832be7d026a6140ef7e113759090a9d..ecac38e0dd7bd6dc7498af55abf4f46395c206f7 100644 (file)
@@ -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)