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 97ae31f commit b5b4609Copy full SHA for b5b4609
1 file changed
flask_mongoengine/connection.py
@@ -41,14 +41,6 @@ def _sanitize_settings(settings):
41
# Default to ReadPreference.PRIMARY if no read_preference is supplied
42
resolved_settings['read_preference'] = resolved_settings.get('read_preference', ReadPreference.PRIMARY)
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
# Clean up empty values
53
for k, v in list(resolved_settings.items()):
54
if v is None:
0 commit comments