Skip to content

Commit 3d5ce00

Browse files
committed
make it a plain dictionary in parse_uri
1 parent 8028eb2 commit 3d5ce00

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

pymongo/asynchronous/uri_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ async def parse_uri(
113113
srv_max_hosts,
114114
)
115115
)
116+
result["options"] = result["options"].as_dict()
116117
return result
117118

118119

@@ -184,5 +185,5 @@ async def _parse_srv(
184185

185186
return {
186187
"nodelist": nodes,
187-
"options": options.as_dict(),
188+
"options": options,
188189
}

pymongo/synchronous/uri_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def parse_uri(
113113
srv_max_hosts,
114114
)
115115
)
116+
result["options"] = result["options"].as_dict()
116117
return result
117118

118119

@@ -184,5 +185,5 @@ def _parse_srv(
184185

185186
return {
186187
"nodelist": nodes,
187-
"options": options.as_dict(),
188+
"options": options,
188189
}

pymongo/uri_parser_shared.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,6 @@ def _validate_uri(
547547
"password": passwd,
548548
"database": dbase,
549549
"collection": collection,
550-
"options": options.as_dict(),
550+
"options": options,
551551
"fqdn": fqdn,
552552
}

0 commit comments

Comments
 (0)