#NEWLINE# def iglob( path_glob ) : #NEWLINE# #INDENT# 'Extended globbing function that supports ** and {opt1,opt2,opt3}.' #NEWLINE# if _CHECK_RECURSIVE_GLOB . search ( path_glob ) : #NEWLINE# #INDENT# msg = 'invalid glob %r: recursive glob "**" must be used alone' #NEWLINE# raise ValueError ( ( msg % path_glob ) ) #NEWLINE# #UNINDENT# if _CHECK_MISMATCH_SET . search ( path_glob ) : #NEWLINE# #INDENT# msg = "invalid glob %r: mismatching set marker '{' or '}'" #NEWLINE# raise ValueError ( ( msg % path_glob ) ) #NEWLINE# #UNINDENT# return _iglob ( path_glob )