From ec7dde60155d3a0c37f96d3307bd45dba9ab5e7b Mon Sep 17 00:00:00 2001 From: Raymond Hogenson Date: Tue, 27 Sep 2016 17:30:56 -0400 Subject: Use python 2 super --- color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/color.py b/color.py index c8cb3cb..779d503 100644 --- a/color.py +++ b/color.py @@ -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.""" -- cgit v1.3.1