Skip to content

Commit 65c13ea

Browse files
authored
Update cookiejar.py
1 parent bab57cc commit 65c13ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/http/cookiejar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ def __init__(self,
894894
strict_ns_set_initial_dollar=False,
895895
strict_ns_set_path=False,
896896
secure_protocols=("https", "wss"),
897-
additional_country_code_slds=None,
897+
additional_country_code_slds={},
898898
):
899899
"""Constructor arguments should be passed as keyword arguments only."""
900900
self.netscape = netscape
@@ -914,7 +914,7 @@ def __init__(self,
914914
"gov", "mil", "int", "aero", "biz", "cat", "coop",
915915
"info", "jobs", "mobi", "museum", "name", "pro",
916916
"travel", "eu", "tv", "or", "nom", "sch", "web"}
917-
if isinstance(additional_country_code_slds, set):
917+
if isinstance(additional_country_code_slds, dict):
918918
self.slds = well_known_slds.union(additional_country_code_slds)
919919
_debug(f"The set of country code slds is {self.slds}")
920920
else:

0 commit comments

Comments
 (0)