<s> """<STR_LIT>""" <EOL> import py <EOL> def main ( ) : <EOL> parser = py . compat . optparse . OptionParser ( usage = __doc__ ) <EOL> parser . add_option ( "<STR_LIT>" , "<STR_LIT>" , dest = "<STR_LIT>" , default = "<STR_LIT>" , action = "<STR_LIT:store>" , <EOL> help = "<STR_LIT>" <EOL> ) <EOL> parser . add_option ( "<STR_LIT>" , "<STR_LIT>" , dest = "<STR_LIT>" , default = False , <EOL> action = "<STR_LIT:store_true>" , <EOL> help = "<STR_LIT>" <EOL> ) <EOL> ( options , args ) = parser . parse_args ( ) <EOL> if not args : <EOL> args = [ "<STR_LIT:.>" ] <EOL> ext = options . ext . split ( "<STR_LIT:U+002C>" ) <EOL> def shouldremove ( p ) : <EOL> return p . ext in ext <EOL> for arg in args : <EOL> path = py . path . local ( arg ) <EOL> print "<STR_LIT>" , path , "<STR_LIT>" , ext <EOL> for x in path . visit ( shouldremove , lambda x : x . check ( dotfile = <NUM_LIT:0> , link = <NUM_LIT:0> ) ) : <EOL> if options . dryrun : <EOL> print "<STR_LIT>" , x <EOL> else : <EOL> print "<STR_LIT>" , x <EOL> x . remove ( ) </s>
