#NEWLINE# def load_defaults( self ) : #NEWLINE# #INDENT# '\n        Loads default extraction rules from the user and system extract.conf files.\n\n        Returns None.\n        ' #NEWLINE# extract_files = [ self . config . settings . user . extract , extract_file . config . settings . system . extract ] #NEWLINE# for extract_file in extract_files : #NEWLINE# #INDENT# if extract_file : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . load_from_file ( extract_file ) #NEWLINE# #UNINDENT# except KeyboardInterrupt as e : #NEWLINE# #INDENT# raise e #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# if binwalk . core . common . DEBUG : #NEWLINE# #INDENT# raise Exception ( ( "Extractor.load_defaults failed to load file '%s': %s" % ( extract_file , str ( e ) ) ) )