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/Vplay.py b/Demo/sgi/video/Vplay.py
index 15592d3..05cff6d 100755
--- a/Demo/sgi/video/Vplay.py
+++ b/Demo/sgi/video/Vplay.py
@@ -144,7 +144,7 @@
def process(filename):
try:
- vin = VFile.VinFile().init(filename)
+ vin = VFile.VinFile(filename)
except IOError, msg:
sys.stderr.write(filename + ': I/O error: ' + `msg` + '\n')
return 1
@@ -233,7 +233,7 @@
MAXSIZE = 20 # Don't read ahead too much
import thread
import Queue
- queue = Queue.Queue().init(MAXSIZE)
+ queue = Queue.Queue(MAXSIZE)
stop = []
thread.start_new_thread(read_ahead, (vin, queue, stop))
# Get the read-ahead thread going