From 9079ba0be92417a5d4793d1b84aacf926a4fbe62 Mon Sep 17 00:00:00 2001 From: Brett Date: Fri, 25 Oct 2024 09:36:09 -0400 Subject: [PATCH] change atomic file prefix --- asdf/_extern/atomicfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asdf/_extern/atomicfile.py b/asdf/_extern/atomicfile.py index 3cc820e4a..886036e19 100644 --- a/asdf/_extern/atomicfile.py +++ b/asdf/_extern/atomicfile.py @@ -132,7 +132,7 @@ def atomic_open(filename, mode='w'): """ if mode in ('r', 'rb', 'r+', 'rb+', 'a', 'ab'): raise TypeError('Read or append modes don\'t work with atomic_open') - f = tempfile.NamedTemporaryFile(mode, prefix='.___atomic_write', + f = tempfile.NamedTemporaryFile(mode, prefix='.asdf_tmp', dir=os.path.dirname(filename), delete=False) return _AtomicWFile(f, f.name, filename)