We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bab57cc commit 65c13eaCopy full SHA for 65c13ea
Lib/http/cookiejar.py
@@ -894,7 +894,7 @@ def __init__(self,
894
strict_ns_set_initial_dollar=False,
895
strict_ns_set_path=False,
896
secure_protocols=("https", "wss"),
897
- additional_country_code_slds=None,
+ additional_country_code_slds={},
898
):
899
"""Constructor arguments should be passed as keyword arguments only."""
900
self.netscape = netscape
@@ -914,7 +914,7 @@ def __init__(self,
914
"gov", "mil", "int", "aero", "biz", "cat", "coop",
915
"info", "jobs", "mobi", "museum", "name", "pro",
916
"travel", "eu", "tv", "or", "nom", "sch", "web"}
917
- if isinstance(additional_country_code_slds, set):
+ if isinstance(additional_country_code_slds, dict):
918
self.slds = well_known_slds.union(additional_country_code_slds)
919
_debug(f"The set of country code slds is {self.slds}")
920
else:
0 commit comments