Staging
v0.5.1
v0.5.1
https://github.com/python/cpython
Revision 092435e932dee1802784ec28f39454f50fdd879a authored by Toke Høiland-Jørgensen on 16 December 2019, 12:23:55 UTC, committed by Victor Stinner on 16 December 2019, 12:23:55 UTC
Commit 6b5b013bcc22 ("bpo-26978: Implement pathlib.Path.link_to (Using os.link) (GH-12990)") introduced a new link_to method in pathlib. However, this makes pathlib crash when the 'os' module is missing a 'link' method. Fix this by checking for the presence of the 'link' method on pathlib module import, and if it's not present, turn it into a runtime error like those emitted when there is no lchmod() or symlink(). Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com>
1 parent 1ca8fb1
Tip revision: 092435e932dee1802784ec28f39454f50fdd879a authored by Toke Høiland-Jørgensen on 16 December 2019, 12:23:55 UTC
bpo-38811: Check for presence of os.link method in pathlib (GH-17225)
bpo-38811: Check for presence of os.link method in pathlib (GH-17225)
Tip revision: 092435e
File | Mode | Size |
---|---|---|
.azure-pipelines | ||
.github | ||
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Programs | ||
Python | ||
Tools | ||
m4 | ||
.gitattributes | -rw-r--r-- | 1.8 KB |
.gitignore | -rw-r--r-- | 1.8 KB |
.travis.yml | -rw-r--r-- | 8.1 KB |
CODE_OF_CONDUCT.md | -rw-r--r-- | 630 bytes |
LICENSE | -rw-r--r-- | 12.5 KB |
Makefile.pre.in | -rw-r--r-- | 66.2 KB |
README.rst | -rw-r--r-- | 9.8 KB |
aclocal.m4 | -rw-r--r-- | 10.7 KB |
config.guess | -rwxr-xr-x | 43.1 KB |
config.sub | -rwxr-xr-x | 35.4 KB |
configure | -rwxr-xr-x | 492.8 KB |
configure.ac | -rw-r--r-- | 163.3 KB |
install-sh | -rwxr-xr-x | 15.0 KB |
netlify.toml | -rw-r--r-- | 82 bytes |
pyconfig.h.in | -rw-r--r-- | 44.1 KB |
setup.py | -rw-r--r-- | 101.7 KB |
Computing file changes ...