From d7366d084139d2d358cf1d21aea3243233cf44dc Mon Sep 17 00:00:00 2001 From: Siim Meerits Date: Wed, 5 Jan 2022 00:26:54 +0200 Subject: [PATCH] aravis: Review suggestion. Replace shutil.move() with tools.rename(). --- recipes/aravis/all/conanfile.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/recipes/aravis/all/conanfile.py b/recipes/aravis/all/conanfile.py index a387134b7e4d8..9c2e5d3df66d8 100644 --- a/recipes/aravis/all/conanfile.py +++ b/recipes/aravis/all/conanfile.py @@ -2,7 +2,6 @@ from conans.errors import ConanInvalidConfiguration import os import glob -import shutil class AravisConan(ConanFile): @@ -128,7 +127,7 @@ def _fix_library_names(self, path): for filename_old in glob.glob("*.a"): filename_new = filename_old[3:-2] + ".lib" self.output.info("rename %s into %s" % (filename_old, filename_new)) - shutil.move(filename_old, filename_new) + tools.rename(filename_old, filename_new) def package(self): self.copy("COPYING", src=self._source_subfolder, dst="licenses", keep_path=False)