#NEWLINE# def mywalk( top , skipdirs = [ '.snapshot' ] ) : #NEWLINE# #INDENT# ' returns subset of os.walk  ' #NEWLINE# for ( root , dirs , files ) in walk ( top , topdown = True , onerror = walkerr ) : #NEWLINE# #INDENT# for skipdir in skipdirs : #NEWLINE# #INDENT# if ( skipdir in dirs ) : #NEWLINE# #INDENT# dirs . remove ( skipdir ) #NEWLINE# #UNINDENT# #UNINDENT# ( yield ( root , dirs , files ) )