From bb3753d720dfb72715a74c07645d836802fe761d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 26 Dec 1991 13:03:23 +0000 Subject: Use Attr*Error. New class syntax. --- Lib/dircmp.py | 4 ++-- 1 file 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 -- cgit v0.12