(cls, uri: str)
| 46 | |
| 47 | @classmethod |
| 48 | def from_uri(cls, uri: str) -> Optional[URIHandler]: |
| 49 | parsed = urllib.parse.urlparse(uri) |
| 50 | cls.load_handlers() |
| 51 | |
| 52 | for handler in HANDLERS.values(): |
| 53 | if handler.is_supported(parsed): |
| 54 | return handler(parsed) |
| 55 | |
| 56 | return cls.default(parsed) |
| 57 | |
| 58 | @classmethod |
| 59 | def diff_from_uri(cls, uri1: str, uri2: str) -> Tuple[URIHandler, URIHandler]: |
nothing calls this directly
no test coverage detected