def calcMD5(path):
<EOL>if os.path.exists(path) is False:<EOL><INDENT>yield False<EOL><DEDENT>else:<EOL><INDENT>command = ['<STR_LIT>', path]<EOL>p = Popen(command, stdout = PIPE)<EOL>for line in p.communicate()[<NUM_LIT:0>].splitlines():<EOL><INDENT>yield line.decode('<STR_LIT:ascii>').strip().split()[<NUM_LIT:0>]<EOL><DEDENT>p.wait()<EOL>yield False<EOL><DEDENT>
calc MD5 based on path