(self, url)
| 269 | return f'Basic {encoded_str}' |
| 270 | |
| 271 | def _get_auth_from_url(self, url): |
| 272 | parsed_url = urlparse(url) |
| 273 | try: |
| 274 | return unquote(parsed_url.username), unquote(parsed_url.password) |
| 275 | except (AttributeError, TypeError): |
| 276 | return None, None |
| 277 | |
| 278 | |
| 279 | class URLLib3Session: |