File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,6 @@ def _sanitize_settings(settings):
41
41
# Default to ReadPreference.PRIMARY if no read_preference is supplied
42
42
resolved_settings ['read_preference' ] = resolved_settings .get ('read_preference' , ReadPreference .PRIMARY )
43
43
44
- # Rename "replicaset" to "replicaSet" if it exists in the dict
45
- # TODO is this necessary? PyMongo normalizes the options and makes them
46
- # all lowercase via pymongo.common.validate (which is called in
47
- # MongoClient.__init__), so both "replicaset and "replicaSet" should be
48
- # valid
49
- # if 'replicaset' in resolved_settings:
50
- # resolved_settings['replicaSet'] = resolved_settings.pop('replicaset')
51
-
52
44
# Clean up empty values
53
45
for k , v in list (resolved_settings .items ()):
54
46
if v is None :
You can’t perform that action at this time.
0 commit comments