diff options
| author | Guido van Rossum <guido@python.org> | 1993-12-17 15:11:41 +0000 |
|---|---|---|
| committer | Guido van Rossum <guido@python.org> | 1993-12-17 15:11:41 +0000 |
| commit | 21a3ff9d5d9d8cad0bc52cb603df93d38e139840 (patch) | |
| tree | 533c4f8e2a23ecaa6099c868035b1463881ff1a7 /Demo/sgi/video/Vplay.py | |
| parent | 96b608cf6ddb4c7b670c15a365ed8b14accd5d37 (diff) | |
| download | cpython-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-x | Demo/sgi/video/Vplay.py | 4 |
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 |
