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

2019-07-31 Thread Andrey
31.07.2019, 20:36, "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

[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