(self, timestamp)
| 714 | raise NotImplementedError(self.proto) |
| 715 | |
| 716 | def with_timestamp(self, timestamp): |
| 717 | # note: this only affects the repository URL/path, not the archive name! |
| 718 | return Location( |
| 719 | self.raw, |
| 720 | overrides={ |
| 721 | "now": DatetimeWrapper(timestamp), |
| 722 | "utcnow": DatetimeWrapper(timestamp.astimezone(timezone.utc)), |
| 723 | }, |
| 724 | ) |
| 725 | |
| 726 | |
| 727 | def location_validator(proto=None, other=False): |
no test coverage detected