adjust warning

Authored by: bashonly
pull/13939/head
bashonly 2 weeks ago
parent bc1370c165
commit 801e3c877e
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0

@ -103,7 +103,7 @@ import urllib3.util.url
if hasattr(urllib3.util.url, '_PERCENT_RE'): # was 'PERCENT_RE' in urllib3 < 2.0.0 if hasattr(urllib3.util.url, '_PERCENT_RE'): # was 'PERCENT_RE' in urllib3 < 2.0.0
urllib3.util.url._PERCENT_RE = Urllib3PercentREOverride(urllib3.util.url._PERCENT_RE) urllib3.util.url._PERCENT_RE = Urllib3PercentREOverride(urllib3.util.url._PERCENT_RE)
else: else:
warnings.warn('Failed to patch PERCENT_RE in urllib3 (does the attribute exist?)' + bug_reports_message()) warnings.warn('Failed to patch _PERCENT_RE in urllib3 (does the attribute exist?)' + bug_reports_message())
# Requests will not automatically handle no_proxy by default # Requests will not automatically handle no_proxy by default

Loading…
Cancel
Save