dlldiag/subcommands/graph.py
def formatReturnValue(entry, successCondition=None):
		'''
		Formats a function call's return value for pretty-printing
		'''
		
		# Evaluate the success condition (if supplied) and retrieve the appropriate error field for the function
		success = successCondition(entry) if successCondition is not None else False
		error = entry['status'] if entry['function'] == 'LdrLoadDll' else entry['error']
		
		# Pretty-print the result upon success or the error upon failure
		if success == True or error['code'] == 0:
			return colored(entry['result'], color='green')
		else:
			return colored(error['message'].strip(), color='red')

		Formats a function call's return value for pretty-printing
		
Formats a function call's return value for pretty-printing
Formats a function call ' s return value for pretty - printing
def formatReturnValue(entry, successCondition=None):
		success = successCondition(entry) if successCondition is not None else False
		error = entry['status'] if entry['function'] == 'LdrLoadDll' else entry['error']
		if success == True or error['code'] == 0:
			return colored(entry['result'], color='green')
		else:
			return colored(error['message'].strip(), color='red')
def formatReturnValue ( entry , successCondition = None ) : success = successCondition ( entry ) if successCondition is not None else False error = entry [ 'status' ] if entry [ 'function' ] == 'LdrLoadDll' else entry [ 'error' ] if success == True or error [ 'code' ] == 0 : return colored ( entry [ 'result' ] , color = 'green' ) else : return colored ( error [ 'message' ] . strip ( ) , color = 'red' )
Formats a function call's return value for pretty-printing
Formats a function call ' s return value for pretty - printing
'''
		Formats a function call's return value for pretty-printing
		''' # Evaluate the success condition (if supplied) and retrieve the appropriate error field for the function # Pretty-print the result upon success or the error upon failure
entry
successCondition