From 4fa997393a46f8e9ddcd106a6f61693de789eb5e Mon Sep 17 00:00:00 2001 From: Arun Babu Neelicattu Date: Wed, 23 Sep 2020 18:51:52 +0200 Subject: [PATCH] provider: ensure download dest file is a string Resolves: #2931 --- poetry/puzzle/provider.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poetry/puzzle/provider.py b/poetry/puzzle/provider.py index 73f8284bef0..a0046dce2f0 100755 --- a/poetry/puzzle/provider.py +++ b/poetry/puzzle/provider.py @@ -324,7 +324,7 @@ def get_package_from_url(cls, url): # type: (str) -> Package with temporary_directory() as temp_dir: temp_dir = Path(temp_dir) file_name = os.path.basename(urlparse.urlparse(url).path) - download_file(url, temp_dir / file_name) + download_file(url, str(temp_dir / file_name)) package = cls.get_package_from_file(temp_dir / file_name)