Skip to content
Myr

Use the realpath of original filename in _AtomicFile (#920)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Florian Margaine · committed by Armin Ronacher · parent b8f5744 · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/_compat.py+1 added-1 removed
478 unmodified lines
479 f = io.open(fd, mode, encoding=encoding, errors=errors)480 else:481 f = os.fdopen(fd, mode)482483 return _AtomicFile(f, tmp_filename, filename), True483 return _AtomicFile(f, tmp_filename, os.path.realpath(filename)), True484485486# Used in a destructor call, needs extra protection from interpreter cleanup.487if hasattr(os, 'replace'):
181 unmodified lines