[Python-checkins] python/nondist/sandbox/ast asdl.py,1.6,1.7
nnorwitz@sourceforge.net
nnorwitz@sourceforge.net
Fri, 19 Apr 2002 05:35:24 -0700
Update of /cvsroot/python/python/nondist/sandbox/ast
In directory usw-pr-cvs1:/tmp/cvs-serv2458
Modified Files:
asdl.py
Log Message:
Little cleanup
Index: asdl.py
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/ast/asdl.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** asdl.py 13 Apr 2002 13:21:23 -0000 1.6
--- asdl.py 19 Apr 2002 12:35:21 -0000 1.7
***************
*** 304,308 ****
else:
meth = getattr(self, methname)
! self.cache[object.__class__] = meth
return meth
--- 304,308 ----
else:
meth = getattr(self, methname)
! self.cache[klass] = meth
return meth
***************
*** 357,364 ****
print "Undefined type %s, used in %s" % (t, uses)
! if v.errors:
! return False
! else:
! return True
def parse(file):
--- 357,361 ----
print "Undefined type %s, used in %s" % (t, uses)
! return not v.errors
def parse(file):