mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-04-27 14:57:41 +00:00
Use dict literal instead of dict() call
This commit is contained in:
parent
a41cf64b6c
commit
dfc29db312
1 changed files with 9 additions and 9 deletions
|
|
@ -27,15 +27,15 @@ STATUS_DIR_PERMISSIONS = 0o700
|
||||||
|
|
||||||
class _StorageIndex:
|
class _StorageIndex:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self._storages = dict(
|
self._storages = {
|
||||||
caldav="vdirsyncer.storage.dav.CalDAVStorage",
|
"caldav": "vdirsyncer.storage.dav.CalDAVStorage",
|
||||||
carddav="vdirsyncer.storage.dav.CardDAVStorage",
|
"carddav": "vdirsyncer.storage.dav.CardDAVStorage",
|
||||||
filesystem="vdirsyncer.storage.filesystem.FilesystemStorage",
|
"filesystem": "vdirsyncer.storage.filesystem.FilesystemStorage",
|
||||||
http="vdirsyncer.storage.http.HttpStorage",
|
"http": "vdirsyncer.storage.http.HttpStorage",
|
||||||
singlefile="vdirsyncer.storage.singlefile.SingleFileStorage",
|
"singlefile": "vdirsyncer.storage.singlefile.SingleFileStorage",
|
||||||
google_calendar="vdirsyncer.storage.google.GoogleCalendarStorage",
|
"google_calendar": "vdirsyncer.storage.google.GoogleCalendarStorage",
|
||||||
google_contacts="vdirsyncer.storage.google.GoogleContactsStorage",
|
"google_contacts": "vdirsyncer.storage.google.GoogleContactsStorage",
|
||||||
)
|
}
|
||||||
|
|
||||||
def __getitem__(self, name):
|
def __getitem__(self, name):
|
||||||
item = self._storages[name]
|
item = self._storages[name]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue