File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 114
114
_Pipeline ,
115
115
)
116
116
from pymongo .uri_parser import (
117
+ SRV_SCHEME ,
117
118
_check_options ,
118
119
_handle_option_deprecations ,
119
120
_handle_security_options ,
@@ -789,8 +790,8 @@ def __init__(
789
790
normalize = False ,
790
791
srv_max_hosts = srv_max_hosts ,
791
792
)
793
+ is_srv = entity .startswith (SRV_SCHEME )
792
794
seeds .update (res ["nodelist" ])
793
- is_srv = res ["is_srv" ] or is_srv
794
795
username = res ["username" ] or username
795
796
password = res ["password" ] or password
796
797
dbase = res ["database" ] or dbase
Original file line number Diff line number Diff line change 113
113
_Pipeline ,
114
114
)
115
115
from pymongo .uri_parser import (
116
+ SRV_SCHEME ,
116
117
_check_options ,
117
118
_handle_option_deprecations ,
118
119
_handle_security_options ,
@@ -787,8 +788,8 @@ def __init__(
787
788
normalize = False ,
788
789
srv_max_hosts = srv_max_hosts ,
789
790
)
791
+ is_srv = entity .startswith (SRV_SCHEME )
790
792
seeds .update (res ["nodelist" ])
791
- is_srv = res ["is_srv" ] or is_srv
792
793
username = res ["username" ] or username
793
794
password = res ["password" ] or password
794
795
dbase = res ["database" ] or dbase
Original file line number Diff line number Diff line change @@ -586,7 +586,6 @@ def _validate_uri(
586
586
_check_options (nodes , options )
587
587
588
588
return {
589
- "is_srv" : is_srv ,
590
589
"nodelist" : nodes ,
591
590
"username" : user ,
592
591
"password" : passwd ,
You can’t perform that action at this time.
0 commit comments