mirror of
https://github.com/python/cpython.git
synced 2025-08-30 05:35:08 +00:00
Remove the ability to slice/index on exceptions per PEP 352.
This commit is contained in:
parent
44c526174d
commit
ba7bf49a54
8 changed files with 16 additions and 46 deletions
|
@ -17,7 +17,7 @@ def cleanup():
|
|||
try:
|
||||
os.unlink(filename + suffix)
|
||||
except OSError as e:
|
||||
(errno, strerror) = e
|
||||
(errno, strerror) = e.errno, e.strerror
|
||||
# if we can't delete the file because of permissions,
|
||||
# nothing will work, so skip the test
|
||||
if errno == 1:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue