Commit 3ba10ea
committed
Clean up class name and
PEP 3135 [^1] simplified the syntax for `super()` in Python 3.0 from:
super(ClassName, self)
to the following very simple and equivalent [^2] syntax:
super()
The current Keras codebase already requires Python 3+.
This change simplifies the entire code base by cleaning up the remaining
explicit uses of the current class name and `self` and using the cleaner
`super()` syntax everywhere consistently.
Since the new syntax is intended to be a shorthand for the old syntax, this
change should have no semantic differences from before.
[^1]: https://peps.python.org/pep-3135/
[^2]: https://docs.python.org/3/library/functions.html#superself in calls to super()
1 parent d1500aa commit 3ba10ea
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
| 135 | + | |
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| |||
0 commit comments