From d11b68ab0834be4be76fca479cd4426eb45dfaec Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 6 Jan 2008 21:13:42 +0000 Subject: Fix more exception slicing. --- Lib/filecmp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Lib/filecmp.py') diff --git a/Lib/filecmp.py b/Lib/filecmp.py index 1f599ce392..12ba3ef6c1 100644 --- a/Lib/filecmp.py +++ b/Lib/filecmp.py @@ -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: -- cgit v1.2.1