From: Artem Bityutskiy Date: Tue, 20 Nov 2012 13:06:21 +0000 (+0200) Subject: BmapCopy.py: open the destination file for writing X-Git-Tag: v1.0~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a902abf54c437abfeabe3ad7d1bc21e6e6cbd2c;p=tools%2Fbmap-tools.git 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 --- 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))