(self, other: URIHandler)
| 37 | ) |
| 38 | |
| 39 | def get_diff_paths(self, other: URIHandler): |
| 40 | if isinstance(other, LocalFileHandler): |
| 41 | for loc1, loc2 in product(self.get_paths(), other.get_paths()): |
| 42 | loc1.metadata["report_imports"] = True |
| 43 | loc2.metadata["report_imports"] = True |
| 44 | |
| 45 | if loc1.location.is_dir(): |
| 46 | loc1.strip_path = str(loc1.location.absolute()) |
| 47 | else: |
| 48 | loc1.strip_path = str(loc1.location.parent) |
| 49 | |
| 50 | if loc2.location.is_dir(): |
| 51 | loc2.strip_path = str(loc2.location.absolute()) |
| 52 | else: |
| 53 | loc2.strip_path = str(loc2.location.parent) |
| 54 | |
| 55 | yield loc1, loc2 |
| 56 | else: |
| 57 | raise UnsupportedDiffLocation() |
| 58 | |
| 59 | @property |
| 60 | def exists(self) -> bool: |
nothing calls this directly
no test coverage detected