mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Fix more exception slicing.
This commit is contained in:
parent
7357c23ee7
commit
d11b68ab08
9 changed files with 15 additions and 15 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue