#NEWLINE# def __init__( self , file , encoding = 'us-ascii' ) : #NEWLINE# #INDENT# if ( not hasattr ( file , 'write' ) ) : #NEWLINE# #INDENT# file = open ( file , 'w' ) #NEWLINE# #UNINDENT# self . __write = file . write #NEWLINE# if hasattr ( file , 'flush' ) : #NEWLINE# #INDENT# self . flush = file . flush #NEWLINE# #UNINDENT# self . __open = 0 #NEWLINE# self . __tags = [ ] #NEWLINE# self . __data = [ ] #NEWLINE# self . __encoding = encoding