#NEWLINE# def render( self , * args , **kwargs ) : #NEWLINE# #INDENT# res = self . client . perform_request ( 'registers' ) #NEWLINE# if res . is_success : #NEWLINE# #INDENT# reg_list = [ 'rax' , 'rbx' , 'rcx' , 'rdx' , 'rbp' , 'rsp' , 'rdi' , 'rsi' , 'rip' , 'r8' , 'r9' , 'r10' , 'r11' , 'r12' , 'r13' , 'r14' , 'r15' ] #NEWLINE# lines = map ( ( lambda x : '{:3}: {:016X}' . format ( x , res . registers [ x ] ) ) , reg_list ) #NEWLINE# self . body = '\n' . join ( lines ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . body = 'Failed to get registers: {}' . format ( reg_list ) #NEWLINE# #UNINDENT# self . title = '[example]' #NEWLINE# self . info = 'some infoz' #NEWLINE# super ( ExampleView , self ) . render ( )