Remove the ability to slice/index on exceptions per PEP 352.

This commit is contained in:
Brett Cannon 2007-02-27 00:15:55 +00:00
parent 44c526174d
commit ba7bf49a54
8 changed files with 16 additions and 46 deletions

View file

@ -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: