[PATCH v2 0/1] git-p4: auto-delete named temporary file

2019-08-02 Thread Philip McGraw via GitGitGadget
Take new approach using the NamedTemporaryFile() file-like object as input to the ZipFile() which auto-deletes after implicit close leaving with scope. Original code produced double-open problems on Windows platform from using already open NamedTemporaryFile() generated filename instead of object.

[PATCH 0/1] git-p4: auto-delete named temporary file

2019-08-01 Thread Philip McGraw via GitGitGadget
Take new approach using the NamedTemporaryFile() file-like object as input to the ZipFile() which auto-deletes after implicit close leaving with scope. Original code produced double-open problems on Windows platform from using already open NamedTemporaryFile() generated filename instead of object.

[PATCH 0/1] git-p4: close temporary file before removing

2019-07-31 Thread Philip McGraw via GitGitGadget
python os.remove() throws exceptions on Windows platform when attempting to remove file while still open. Add local allocateTempFileName() to clarify that only the name is being allocated by NamedTemporaryFile(); file and handle are closed (but not deleted) when leave scope. Subsequent file deleti