Skip to content

Commit

Permalink
Merge pull request #2954 from abn/issue/2931
Browse files Browse the repository at this point in the history
provider: ensure download dest file is a string
  • Loading branch information
sdispater authored Sep 23, 2020
2 parents bd4fecd + 4fa9973 commit dfbe55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poetry/puzzle/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit dfbe55a

Please sign in to comment.