def find(pattern, root=os.curdir):
hits = '<STR_LIT>'<EOL>for F in locate(pattern, root):<EOL><INDENT>hits = hits + F + '<STR_LIT:\n>'<EOL><DEDENT>l = hits.split('<STR_LIT:\n>')<EOL>if(not len(l[-<NUM_LIT:1>])): l.pop()<EOL>if len(l) == <NUM_LIT:1> and not len(l[<NUM_LIT:0>]):<EOL><INDENT>return None<EOL><DEDENT>else:<EOL><INDENT>return l<EOL><DEDENT>
Helper around 'locate