mirror of
https://github.com/python/cpython.git
synced 2025-09-16 13:47:31 +00:00
Issue #8179: Fix macpath.realpath() on a non-existing path.
This commit is contained in:
parent
b88fbf4fef
commit
cf82fa6f91
2 changed files with 6 additions and 1 deletions
|
@ -206,7 +206,10 @@ def realpath(path):
|
||||||
path = components[0] + ':'
|
path = components[0] + ':'
|
||||||
for c in components[1:]:
|
for c in components[1:]:
|
||||||
path = join(path, c)
|
path = join(path, c)
|
||||||
|
try:
|
||||||
path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname()
|
path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname()
|
||||||
|
except Carbon.File.Error:
|
||||||
|
pass
|
||||||
return path
|
return path
|
||||||
|
|
||||||
supports_unicode_filenames = False
|
supports_unicode_filenames = False
|
||||||
|
|
|
@ -24,6 +24,8 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #8179: Fix macpath.realpath() on a non-existing path.
|
||||||
|
|
||||||
- Issue #8024: Update the Unicode database to 5.2.
|
- Issue #8024: Update the Unicode database to 5.2.
|
||||||
|
|
||||||
- Issue #8104: socket.recv_into() and socket.recvfrom_into() now support
|
- Issue #8104: socket.recv_into() and socket.recvfrom_into() now support
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue