@memoized
def format_address(addr, type):
 colorcodes = {'data': 'blue', 'code': 'red', 'rodata': 'green', 'value': None}
 return colorize(addr, colorcodes[type])

@ memoized def format_address ( addr , type ) : colorcodes = { 'data' : 'blue' , 'code' : 'red' , 'rodata' : 'green' , 'value' : None } return colorize ( addr , colorcodes [ type ] )
colorize an address .