def process_file(self, path, dryrun):
        """
        Remove files and return filename.
        """
        # if dryrun just return file path
        if dryrun:
            return path

        # remove and return file
        if self.__force or raw_input("Remove file '%s'? [y/N]" % path).lower() == "y":
            os.remove(path)
            return path
def process_file ( self , path , dryrun ) : if dryrun : return path if self . __force or raw_input ( "Remove file '%s'? [y/N]" % path ) . lower ( ) == "y" : os . remove ( path ) return path
Remove files and return filename.