From: Guido van Rossum Date: Tue, 18 Aug 1992 17:00:51 +0000 (+0000) Subject: Add close() method to VinFile X-Git-Tag: v0.9.8~215 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bc0eb9967d21ddaa783fc34d445e504b6552e242;p=thirdparty%2FPython%2Fcpython.git Add close() method to VinFile --- diff --git a/Demo/sgi/video/VFile.py b/Demo/sgi/video/VFile.py index 9415e2c0372a..2febd5a27521 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,\