Add close at end of get_file

This commit is contained in:
John Schember 2009-03-01 10:23:25 -05:00
parent 4d21dd9fe2
commit 3dc42b5302

View File

@ -167,6 +167,7 @@ class USBMS(Device):
path = self.munge_path(path)
src = open(path, 'rb')
shutil.copyfileobj(src, outfile, 10*1024*1024)
src.close()
def put_file(self, infile, path, replace_file=False, end_session=True):
path = self.munge_path(path)