def restore(self, clean=False):
        """Restore the original files.

        If clean is True, wipe out the backup files.

        """

        for origfilename in self.filenames[:]:
            if not origfilename.endswith("."+self.BACKUP_EXTENSION):
                continue
            filename = origfilename.strip("."+self.BACKUP_EXTENSION)
            shutil.copy(origfilename, filename)
            self.filenames.append(filename)
            if clean:
                os.remove(origfilename)
Restore the original files.

        If clean is True, wipe out the backup files.

        
recipes/Python/577788_Simple_Class_Transforming_PythSource/recipe-577788.py