Skip to content

Refactor tempfile creation (SOFTWARE-5531)#171

Draft
brianhlin wants to merge 3 commits into
opensciencegrid:2.xfrom
brianhlin:SOFTWARE-5531.refactor-tempfile-creation
Draft

Refactor tempfile creation (SOFTWARE-5531)#171
brianhlin wants to merge 3 commits into
opensciencegrid:2.xfrom
brianhlin:SOFTWARE-5531.refactor-tempfile-creation

Conversation

@brianhlin
Copy link
Copy Markdown
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