From 347727237c9a3ba8ff00f2dbabe9b4ff05529f6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danie=CC=88l=20de=20Kok?= Date: Wed, 25 Jan 2023 10:13:49 +0100 Subject: [PATCH] Remove unnecessary string conversion of paths --- spacy/cli/_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/cli/_util.py b/spacy/cli/_util.py index 3f536a212..228bd21f6 100644 --- a/spacy/cli/_util.py +++ b/spacy/cli/_util.py @@ -415,7 +415,7 @@ def git_checkout( err = f"'{subpath}' is a path outside of the cloned repository." msg.fail(err, repo, exits=1) if os.path.isdir(source_path): - shutil.copytree(str(source_path), str(dest)) + shutil.copytree(source_path, dest) else: shutil.copyfile(source_path, dest) except FileNotFoundError: