Fix more exception slicing.

This commit is contained in:
Georg Brandl 2008-01-06 21:13:42 +00:00
parent 7357c23ee7
commit d11b68ab08
9 changed files with 15 additions and 15 deletions

View file

@ -149,12 +149,12 @@ class dircmp:
try:
a_stat = os.stat(a_path)
except os.error as why:
# print 'Can\'t stat', a_path, ':', why[1]
# print('Can\'t stat', a_path, ':', why.args[1])
ok = 0
try:
b_stat = os.stat(b_path)
except os.error as why:
# print 'Can\'t stat', b_path, ':', why[1]
# print('Can\'t stat', b_path, ':', why.args[1])
ok = 0
if ok: