From 0a902abf54c437abfeabe3ad7d1bc21e6e6cbd2c Mon Sep 17 00:00:00 2001 From: Artem Bityutskiy Date: Tue, 20 Nov 2012 15:06:21 +0200 Subject: [PATCH] BmapCopy.py: open the destination file for writing Open the destination file in write-only mode, because we only write to this file, and never read from. Change-Id: I5bdef84ecdb7faf38190a00bb34fb1b183fb9430 Signed-off-by: Artem Bityutskiy --- bmaptools/BmapCopy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bmaptools/BmapCopy.py b/bmaptools/BmapCopy.py index c579970..6d11247 100644 --- a/bmaptools/BmapCopy.py +++ b/bmaptools/BmapCopy.py @@ -195,7 +195,7 @@ class BmapCopy: """ Open the destination file. """ try: - self._f_dest = open(self._dest_path, 'w+') + self._f_dest = open(self._dest_path, 'w') except IOError as err: raise Error("cannot open destination file '%s': %s" \ % (self._dest_path, err)) -- 2.7.4