Skip to content
Snippets Groups Projects
user avatar
Cleber Rosa authored
Python's os.rename() will silently replace an existing file,
so there's no need for the extra check and removal.

Reference: https://docs.python.org/3/library/os.html#os.rename



Signed-off-by: default avatarCleber Rosa <crosa@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20190613130718.3763-3-crosa@redhat.com>
Signed-off-by: default avatarAlex Bennée <alex.bennee@linaro.org>
fcd2060e
History