Skip to content

Commit dfc29db

Browse files
committed
Use dict literal instead of dict() call
1 parent a41cf64 commit dfc29db

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

vdirsyncer/cli/utils.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727

2828
class _StorageIndex:
2929
def __init__(self):
30-
self._storages = dict(
31-
caldav="vdirsyncer.storage.dav.CalDAVStorage",
32-
carddav="vdirsyncer.storage.dav.CardDAVStorage",
33-
filesystem="vdirsyncer.storage.filesystem.FilesystemStorage",
34-
http="vdirsyncer.storage.http.HttpStorage",
35-
singlefile="vdirsyncer.storage.singlefile.SingleFileStorage",
36-
google_calendar="vdirsyncer.storage.google.GoogleCalendarStorage",
37-
google_contacts="vdirsyncer.storage.google.GoogleContactsStorage",
38-
)
30+
self._storages = {
31+
"caldav": "vdirsyncer.storage.dav.CalDAVStorage",
32+
"carddav": "vdirsyncer.storage.dav.CardDAVStorage",
33+
"filesystem": "vdirsyncer.storage.filesystem.FilesystemStorage",
34+
"http": "vdirsyncer.storage.http.HttpStorage",
35+
"singlefile": "vdirsyncer.storage.singlefile.SingleFileStorage",
36+
"google_calendar": "vdirsyncer.storage.google.GoogleCalendarStorage",
37+
"google_contacts": "vdirsyncer.storage.google.GoogleContactsStorage",
38+
}
3939

4040
def __getitem__(self, name):
4141
item = self._storages[name]

0 commit comments

Comments
 (0)