Skip to content

Commit

Permalink
set to dlt temp file after url loading
Browse files Browse the repository at this point in the history
  • Loading branch information
manoskary committed Dec 24, 2024
1 parent 19cf164 commit e1787fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partitura/io/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def download_file(url):
extension = os.path.splitext(url)[-1]

# Create a temporary file
temp_file = tempfile.NamedTemporaryFile(delete=False, suffix=extension)
temp_file = tempfile.NamedTemporaryFile(delete=True, suffix=extension)

# Write the content to the temporary file
with open(temp_file.name, 'wb') as f:
Expand Down

0 comments on commit e1787fc

Please sign in to comment.