Skip to content

Commit b5b4609

Browse files
committed
cleanup of unnecessary connection logic
1 parent 97ae31f commit b5b4609

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

flask_mongoengine/connection.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@ def _sanitize_settings(settings):
4141
# Default to ReadPreference.PRIMARY if no read_preference is supplied
4242
resolved_settings['read_preference'] = resolved_settings.get('read_preference', ReadPreference.PRIMARY)
4343

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-
5244
# Clean up empty values
5345
for k, v in list(resolved_settings.items()):
5446
if v is None:

0 commit comments

Comments
 (0)