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 |
---|---|---|
NEWS.d | ||
ACKS | -rw-r--r-- | 27.3 KB |
HISTORY | -rw-r--r-- | 1.3 MB |
Porting | -rw-r--r-- | 63 bytes |
README | -rw-r--r-- | 1.4 KB |
README.AIX | -rw-r--r-- | 4.7 KB |
README.coverity | -rw-r--r-- | 845 bytes |
README.valgrind | -rw-r--r-- | 4.8 KB |
SpecialBuilds.txt | -rw-r--r-- | 9.8 KB |
coverity_model.c | -rw-r--r-- | 4.0 KB |
gdbinit | -rw-r--r-- | 4.8 KB |
indent.pro | -rw-r--r-- | 557 bytes |
python-config.in | -rw-r--r-- | 2.0 KB |
python-config.sh.in | -rw-r--r-- | 2.9 KB |
python-embed.pc.in | -rw-r--r-- | 310 bytes |
python-wing3.wpr | -rwxr-xr-x | 555 bytes |
python-wing4.wpr | -rwxr-xr-x | 835 bytes |
python-wing5.wpr | -rwxr-xr-x | 835 bytes |
python.man | -rw-r--r-- | 15.8 KB |
python.pc.in | -rw-r--r-- | 268 bytes |
svnmap.txt | -rw-r--r-- | 4.1 MB |
valgrind-python.supp | -rw-r--r-- | 8.5 KB |
vgrindefs | -rw-r--r-- | 500 bytes |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...