projects
/
soc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d76cc9
)
Remove default argument for dict.get()
author
Cesar Strauss
<cestrauss@gmail.com>
Wed, 8 Sep 2021 09:25:18 +0000
(06:25 -0300)
committer
Cesar 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
patch
|
blob
|
history
diff --git
a/src/soc/fu/compunits/compunits.py
b/src/soc/fu/compunits/compunits.py
index bdb0847dd832be7d026a6140ef7e113759090a9d..ecac38e0dd7bd6dc7498af55abf4f46395c206f7 100644
(file)
--- 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)