Skip to content

Commit 587ba91

Browse files
author
Len Buckens
committed
increase readability
1 parent 309aaba commit 587ba91

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

AUTHORS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ that much better:
2626
* RealJTG - https://github.com/RealJTG
2727
* Peter D. Gray
2828
* Massimo Santini
29-
^ Len Buckens - https://github.com/buckensl
29+
* Len Buckens - https://github.com/buckensl

flask_mongoengine/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def _create_connection(conn_settings):
3131
connections[conn.get('alias')] = _create_connection(conn)
3232
return connections
3333

34-
conn = dict((k.lower(), v) for k, v in conn_settings.items() if v is not None)
34+
conn = {k.lower(): v for k, v in conn_settings.items() if v is not None}
3535

3636
if 'replicaset' in conn:
3737
conn['replicaSet'] = conn.pop('replicaset')

0 commit comments

Comments
 (0)