summaryrefslogtreecommitdiff
path: root/Demo/sgi/video/Vplay.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1993-12-17 15:11:41 +0000
committerGuido van Rossum <guido@python.org>1993-12-17 15:11:41 +0000
commit21a3ff9d5d9d8cad0bc52cb603df93d38e139840 (patch)
tree533c4f8e2a23ecaa6099c868035b1463881ff1a7 /Demo/sgi/video/Vplay.py
parent96b608cf6ddb4c7b670c15a365ed8b14accd5d37 (diff)
downloadcpython-git-21a3ff9d5d9d8cad0bc52cb603df93d38e139840.tar.gz
Uniformly replaced init() functions by __init__() constructors.
A few simple things seem to work, I haven't tested it thouroughly though...
Diffstat (limited to 'Demo/sgi/video/Vplay.py')
-rwxr-xr-xDemo/sgi/video/Vplay.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/sgi/video/Vplay.py b/Demo/sgi/video/Vplay.py
index 15592d3301..05cff6d6ef 100755
--- a/Demo/sgi/video/Vplay.py
+++ b/Demo/sgi/video/Vplay.py
@@ -144,7 +144,7 @@ def main():
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 @@ def playonce(vin):
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