Commit 5fe67bdc authored by Guido van Rossum's avatar Guido van Rossum

Use Attr*Error.

New class syntax.
parent a79423c1
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment