Return new rrule with same attributes except for those attributes given new values by whichever keyword arguments are specified.
(self, **kwargs)
| 775 | return '\n'.join(output) |
| 776 | |
| 777 | def replace(self, **kwargs): |
| 778 | """Return new rrule with same attributes except for those attributes given new |
| 779 | values by whichever keyword arguments are specified.""" |
| 780 | new_kwargs = {"interval": self._interval, |
| 781 | "count": self._count, |
| 782 | "dtstart": self._dtstart, |
| 783 | "freq": self._freq, |
| 784 | "until": self._until, |
| 785 | "wkst": self._wkst, |
| 786 | "cache": False if self._cache is None else True } |
| 787 | new_kwargs.update(self._original_rule) |
| 788 | new_kwargs.update(kwargs) |
| 789 | return rrule(**new_kwargs) |
| 790 | |
| 791 | def _iter(self): |
| 792 | year, month, day, hour, minute, second, weekday, yearday, _ = \ |