def iglob(path_glob):
if _CHECK_RECURSIVE_GLOB.search(path_glob):<EOL><INDENT>msg = """<STR_LIT>"""<EOL>raise ValueError(msg % path_glob)<EOL><DEDENT>if _CHECK_MISMATCH_SET.search(path_glob):<EOL><INDENT>msg = """<STR_LIT>"""<EOL>raise ValueError(msg % path_glob)<EOL><DEDENT>return _iglob(path_glob)<EOL>
Extended globbing function that supports ** and {opt1,opt2,opt3}.