mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Use Attr*Error.
New class syntax.
This commit is contained in:
parent
4dedbf7197
commit
bb3753d720
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue