mirror of
https://github.com/python/cpython.git
synced 2025-09-11 19:27:07 +00:00
Re-raise the Res.Error if the file doesn't exist.
This commit is contained in:
parent
2cce33f3bd
commit
d21c9f48fa
1 changed files with 2 additions and 0 deletions
|
@ -91,6 +91,8 @@ def open_pathname(pathname):
|
||||||
# Finally try decoding an AppleSingle file
|
# Finally try decoding an AppleSingle file
|
||||||
pathname = _decode(pathname)
|
pathname = _decode(pathname)
|
||||||
refno = Res.FSOpenResourceFile(pathname, u'', 1)
|
refno = Res.FSOpenResourceFile(pathname, u'', 1)
|
||||||
|
else:
|
||||||
|
raise
|
||||||
return refno
|
return refno
|
||||||
|
|
||||||
def _decode(pathname):
|
def _decode(pathname):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue