projects
/
experiments
/
RadialSymmetry.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aad1044
)
RadialSymmetryDiagram.py: remove trivial __init__ method
author
Antonio Ospite <ao2@ao2.it>
Fri, 12 Jun 2015 15:11:09 +0000
(17:11 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 12 Jun 2015 15:11:09 +0000
(17:11 +0200)
When the __init__ method just calls the parent __init__ method without
doing anything else, it is not strictly needed.
RadialSymmetryDiagram.py
patch
|
blob
|
history
diff --git
a/RadialSymmetryDiagram.py
b/RadialSymmetryDiagram.py
index
e6bc383
..
a54c1bb
100755
(executable)
--- a/
RadialSymmetryDiagram.py
+++ b/
RadialSymmetryDiagram.py
@@
-43,9
+43,6
@@
class RadialSymmetryModel():
class RadialSymmetryDiagram(Diagram.Diagram):
- def __init__(self, width, height, background=[1, 1, 1]):
- Diagram.Diagram.__init__(self, width, height, background)
-
def draw(self, model):
cx = self.width / 2.0
cy = self.height / 2.0