#NEWLINE# def __init__( self , template = None , pattern = None , templateDir = None , beExtremelyLenient = None ) : #NEWLINE# #INDENT# warnings . warn ( "[v0.8] htmlfile is deprecated because it's buggy. Please start using xmlfile and/or xmlstr." , DeprecationWarning , stacklevel = 2 ) #NEWLINE# if ( template is not None ) : #NEWLINE# #INDENT# self . template = template #NEWLINE# #UNINDENT# if ( pattern is not None ) : #NEWLINE# #INDENT# self . pattern = pattern #NEWLINE# #UNINDENT# if ( templateDir is not None ) : #NEWLINE# #INDENT# self . templateDir = template #NEWLINE# #UNINDENT# if ( beExtremelyLenient is not None ) : #NEWLINE# #INDENT# self . beExtremelyLenient = beExtremelyLenient #NEWLINE# #UNINDENT# _filename = os . path . join ( self . templateDir , self . template ) #NEWLINE# self . _cache = CachedFile ( _filename , self . _reallyLoad )