summaryrefslogtreecommitdiffstats
path: root/Lib/dircmp.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:03:23 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:03:23 (GMT)
commitbb3753d720dfb72715a74c07645d836802fe761d (patch)
treeab1105b1719bcd9073560a0cfea8dc214364b680 /Lib/dircmp.py
parent4dedbf7197e679b432fd3f06d8e36a223ae78f00 (diff)
downloadcpython-bb3753d720dfb72715a74c07645d836802fe761d.zip
cpython-bb3753d720dfb72715a74c07645d836802fe761d.tar.gz
cpython-bb3753d720dfb72715a74c07645d836802fe761d.tar.bz2
Use Attr*Error.
New class syntax.
Diffstat (limited to 'Lib/dircmp.py')
-rw-r--r--Lib/dircmp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/dircmp.py b/Lib/dircmp.py
index 60afcdd..0c6b4a7 100644
--- a/Lib/dircmp.py
+++ b/Lib/dircmp.py
@@ -13,7 +13,7 @@ from stat import *
# Directory comparison class.
#
-class dircmp():
+class dircmp:
#
def new(dd, (a, b)): # Initialize
dd.a = a
@@ -128,7 +128,7 @@ class dircmp():
dd.report()
try:
x = dd.subdirs
- except NameError:
+ except AttributeError:
return # No subdirectories computed
for x in dd.subdirs.keys():
print