Commit bc0eb996 authored by Guido van Rossum's avatar Guido van Rossum

Add close() method to VinFile

parent b2e82284
...@@ -155,6 +155,10 @@ class VinFile: ...@@ -155,6 +155,10 @@ class VinFile:
if not self.hascache: if not self.hascache:
raise Error, 'Cannot warm cache' 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 # getinfo returns all info pertaining to a film. The returned tuple
...@@ -421,7 +425,7 @@ class VoutFile: ...@@ -421,7 +425,7 @@ class VoutFile:
def close(self): def close(self):
self.fp.close() self.fp.close()
self = self.initfp(None, None) x = self.initfp(None, None)
def setinfo(self, values): def setinfo(self, values):
self.format, self.width, self.height, self.packfactor,\ self.format, self.width, self.height, self.packfactor,\
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment