summaryrefslogtreecommitdiffstats
path: root/Demo
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1992-08-18 17:00:51 (GMT)
committerGuido van Rossum <guido@python.org>1992-08-18 17:00:51 (GMT)
commitbc0eb9967d21ddaa783fc34d445e504b6552e242 (patch)
treecc8743fd5d72bce5353e54088422f31aad6c5932 /Demo
parentb2e822849b99d5b68990896a3077b55ebfeb4d03 (diff)
downloadcpython-bc0eb9967d21ddaa783fc34d445e504b6552e242.zip
cpython-bc0eb9967d21ddaa783fc34d445e504b6552e242.tar.gz
cpython-bc0eb9967d21ddaa783fc34d445e504b6552e242.tar.bz2
Add close() method to VinFile
Diffstat (limited to 'Demo')
-rwxr-xr-xDemo/sgi/video/VFile.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py
index 9415e2c..2febd5a 100755
--- a/Demo/sgi/video/VFile.py
+++ b/Demo/sgi/video/VFile.py
@@ -155,6 +155,10 @@ class VinFile:
if not self.hascache:
raise Error, 'Cannot warm cache'
+ def close(self):
+ self.fp.close()
+ self.fp = None
+
#
# getinfo returns all info pertaining to a film. The returned tuple
@@ -421,7 +425,7 @@ class VoutFile:
def close(self):
self.fp.close()
- self = self.initfp(None, None)
+ x = self.initfp(None, None)
def setinfo(self, values):
self.format, self.width, self.height, self.packfactor,\