From 3dc42b5302f6fec969f4996115f3dda071013903 Mon Sep 17 00:00:00 2001 From: John Schember Date: Sun, 1 Mar 2009 10:23:25 -0500 Subject: [PATCH] Add close at end of get_file --- src/calibre/devices/usbms/driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/devices/usbms/driver.py b/src/calibre/devices/usbms/driver.py index cadc61e584..3b9e8c0715 100644 --- a/src/calibre/devices/usbms/driver.py +++ b/src/calibre/devices/usbms/driver.py @@ -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)