#NEWLINE# def parse( self , instr ) : #NEWLINE# #INDENT# 'Parse an ARM instruction.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# instr_lower = instr . lower ( ) #NEWLINE# if ( not ( instr_lower in self . _cache ) ) : #NEWLINE# #INDENT# instr_asm = instruction . parseString ( instr_lower ) [ 0 ] #NEWLINE# self . _cache [ instr_lower ] = instr_asm #NEWLINE# #UNINDENT# instr_asm = copy . deepcopy ( self . _cache [ instr_lower ] ) #NEWLINE# #UNINDENT# except Exception : #NEWLINE# #INDENT# instr_asm = None #NEWLINE# error_msg = 'Failed to parse instruction: %s' #NEWLINE# logger . error ( error_msg , instr , exc_info = True ) #NEWLINE# #UNINDENT# return instr_asm