mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Add close() method to VinFile
This commit is contained in:
parent
b2e822849b
commit
bc0eb9967d
1 changed files with 5 additions and 1 deletions
|
@ -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,\
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue