diff options
| author | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-09-27 17:30:56 -0400 |
|---|---|---|
| committer | Raymond Hogenson <rayhogenson@openmailbox.org> | 2016-09-27 17:30:56 -0400 |
| commit | ec7dde60155d3a0c37f96d3307bd45dba9ab5e7b (patch) | |
| tree | 34fb35c048f22cc09a091a3b5471d6d8ebe02f41 /color.py | |
| parent | Move color vectors into separate file (diff) | |
| download | bridge-ec7dde60155d3a0c37f96d3307bd45dba9ab5e7b.tar.zst | |
Use python 2 super
Diffstat (limited to 'color.py')
| -rw-r--r-- | color.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ def HSV(Vector): """HSV 3-vector.""" def __init__(self, hue, saturation, value): """Initialize with hue, saturation, and value.""" - super().__init__(hue, saturation, value) + super(Vector, self).__init__(hue, saturation, value) def to_RGB(self): """Convert to an RGB vector.""" @@ -65,7 +65,7 @@ def RGB(Vector): """RGB 3-vector.""" def __init__(self, r, g, b): """Initialize with red green and blue.""" - super().__init__(r, g, b) + super(Vector, self).__init__(r, g, b) def to_HSV(self): """Convert to HSV vector.""" |
