Skip to content

Commit

Permalink
Merge pull request #1851 from braingram/atomic_file_prefix
Browse files Browse the repository at this point in the history
change atomic file prefix
  • Loading branch information
braingram authored Oct 25, 2024
2 parents a4e7961 + 9079ba0 commit f39f706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asdf/_extern/atomicfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit f39f706

Please sign in to comment.