summaryrefslogtreecommitdiffstats
path: root/Lib/filecmp.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 21:13:42 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-06 21:13:42 (GMT)
commitd11b68ab0834be4be76fca479cd4426eb45dfaec (patch)
treebc05f1c9ac1e0460d2f30531fcb31ab09084979e /Lib/filecmp.py
parent7357c23ee72d687433452555018e9931159a2dfa (diff)
downloadcpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.zip
cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.gz
cpython-d11b68ab0834be4be76fca479cd4426eb45dfaec.tar.bz2
Fix more exception slicing.
Diffstat (limited to 'Lib/filecmp.py')
-rw-r--r--Lib/filecmp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/filecmp.py b/Lib/filecmp.py
index 1f599ce..12ba3ef 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: