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/Vrecb.py b/Demo/sgi/video/Vrecb.py
index f726fe3..f568779 100755
--- a/Demo/sgi/video/Vrecb.py
+++ b/Demo/sgi/video/Vrecb.py
@@ -309,7 +309,7 @@
# Construct header and write it
#
try:
- vout = VFile.VoutFile().init(filename)
+ vout = VFile.VoutFile(filename)
except IOError, msg:
print filename, ':', msg
sys.exit(1)
@@ -389,8 +389,8 @@
AQSIZE = 8*8000 # XXX should be a user option
def initaudio(filename, stop, start, done):
- import thread, aiff
- afile = aiff.Aiff().init(filename, 'w')
+ import thread, aifc
+ afile = aifc.open(filename, 'w')
afile.nchannels = AL.MONO
afile.sampwidth = AL.SAMPLE_8
params = [AL.INPUT_RATE, 0]