#NEWLINE# def main( ) : #NEWLINE# #INDENT# args = ( sys . argv [ 1 : ] or os . curdir ) #NEWLINE# for arg in args : #NEWLINE# #INDENT# if os . path . isdir ( arg ) : #NEWLINE# #INDENT# for ( dn , dirs , files ) in os . walk ( arg ) : #NEWLINE# #INDENT# for fn in sorted ( dirs ) : #NEWLINE# #INDENT# if fn . endswith ( '.py' ) : #NEWLINE# #INDENT# process ( os . path . join ( dn , fn ) ) #NEWLINE# #UNINDENT# #UNINDENT# dirs [ : ] = [ d for d in dirs if ( d [ 0 ] != '.' ) ] #NEWLINE# dirs . sort ( ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# process ( arg )