Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor tempfile creation (SOFTWARE-5531) #171

Draft
wants to merge 3 commits into
base: 2.x
Choose a base branch
from

Conversation

brianhlin
Copy link
Member

This changes GenerateFilename to use the tempfile library, making it return a _TemporaryFileWrapper (file-like interface), and fixes the prefix arg to work as documented (i.e., callers don't need to add the trailing .)

Marked as WIP because 1) the tar bits are unfinished, 2) needs some actual testing, and 3) would be nice to finally add some type hints.

@brianhlin brianhlin force-pushed the SOFTWARE-5531.refactor-tempfile-creation branch from 092c982 to a8d2271 Compare March 24, 2023 22:09
@brianhlin brianhlin force-pushed the SOFTWARE-5531.refactor-tempfile-creation branch from a8d2271 to 948ac52 Compare July 18, 2023 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant