Skip to content

Use a context or tempfile.mkstemp in decorators.py#use_working_copy #56

@Starou

Description

@Starou

tmp_filename = NamedTemporaryFile().name

Followed by https://github.com/Starou/SimpleIDML/blob/master/src/simple_idml/decorators.py#L58

This could be refactored since "Unlike TemporaryFile(), the user of mkstemp() is responsible for deleting the temporary file when done with it."

https://docs.python.org/3.7/library/tempfile.html#tempfile.mkstemp

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions