mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Used original SAX handling form.
This commit is contained in:
parent
99b84bdaad
commit
6c4753f925
3 changed files with 14 additions and 15 deletions
|
@ -41,7 +41,7 @@ class Node:
|
|||
Node.allnodes[index]=repr( self.__dict__ )
|
||||
if Node.debug==None:
|
||||
Node.debug=StringIO()
|
||||
#open( "debug4.out", "w" )
|
||||
#open( "debug4.out", "w" )
|
||||
Node.debug.write( "create %s\n"%index )
|
||||
|
||||
def __getattr__( self, key ):
|
||||
|
@ -230,7 +230,7 @@ dictionary"""
|
|||
else:
|
||||
assert isinstance( value, Attr ) or type( value )==types.StringType
|
||||
node=value
|
||||
old=self._attrs.get( attname, None)
|
||||
old=self._attrs.get( attname, None)
|
||||
if old:
|
||||
old.unlink()
|
||||
self._attrs[node.name]=node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue