def _clean_name(self, name): if self.suffix and name.endswith(self.suffix): name = name[:-len(self.suffix)] return uncamel(name)