#NEWLINE# def open( self , filename ) : #NEWLINE# #INDENT# self . filename = filename #NEWLINE# reader = unpreserve . Reader ( IrcUserCreator , self ) #NEWLINE# try : #NEWLINE# #INDENT# self . noFlush = True #NEWLINE# try : #NEWLINE# #INDENT# reader . readFile ( filename ) #NEWLINE# self . noFlush = False #NEWLINE# self . flush ( ) #NEWLINE# #UNINDENT# except EnvironmentError as e : #NEWLINE# #INDENT# log . error ( 'Invalid user dictionary file, resetting to empty.' ) #NEWLINE# log . error ( 'Exact error: %s' , utils . exnToString ( e ) ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# log . exception ( 'Exact error:' ) #NEWLINE# #UNINDENT# #UNINDENT# finally : #NEWLINE# #INDENT# self . noFlush = False