Skip to content
Myr

resolve symlinks on Windows Python < 3.8

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

authored by BALaka-18 · committed by David Lord · parent ab80d1d · Browse files · 2 files+6 added−0 removed
This commit

State

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

Diff stats

2 files+6 added−0 removed

  • other:+6 added−0 removed

2 files+6 added−0 removed

modified:src/click/types.py+4 added
732 unmodified lines
733 is_dash = self.file_okay and self.allow_dash and rv in (b"-", "-")734735 if not is_dash:736 if self.resolve_path:737 # realpath on Windows Python < 3.8 doesn't resolve symlinks738 if os.path.islink(rv):739 rv = os.readlink(rv)740741 rv = os.path.realpath(rv)742743 try:744 st = os.stat(rv)
186 unmodified lines
modified:CHANGES.rst+2 added
185 unmodified lines
186 ``nargs > 1`` has non-iterable default. :issue:`1749`187- Add a ``pass_meta_key`` decorator for passing a key from188 ``Context.meta``. This is useful for extensions using ``meta`` to189 store information. :issue:`1739`190- ``Path`` ``resolve_path`` resolves symlinks on Windows Python < 3.8.191 :issue:`1813`192193194Version 7.1.2195-------------
635 unmodified lines