Check to see if `url` has a valid protocol.
(url: str)
| 206 | |
| 207 | |
| 208 | def _is_url(url: str) -> bool: |
| 209 | """Check to see if `url` has a valid protocol.""" |
| 210 | try: |
| 211 | return urlparse(url).scheme in _VALID_URLS |
| 212 | except Exception: |
| 213 | return False |
| 214 | |
| 215 | |
| 216 | def mercator_transform( |
no outgoing calls