Uniformly replaced init() functions by __init__() constructors.
A few simple things seem to work, I haven't tested it thouroughly
though...
diff --git a/Demo/sgi/video/imgconv.py b/Demo/sgi/video/imgconv.py
index 08bc7af..291fdc8 100755
--- a/Demo/sgi/video/imgconv.py
+++ b/Demo/sgi/video/imgconv.py
@@ -126,14 +126,13 @@
def instantiate_converter(args):
list = args[2]
- cl = RtConverters().init(list)
+ cl = RtConverters(list)
args.append(cl.convert)
return args
class RtConverters:
- def init(self, list):
+ def __init__(self, list):
self.list = list
- return self
def convert(self, img, w, h):
for cv in self.list: