From dfc29db3129f560160128f4f8af8f0c9344c4e23 Mon Sep 17 00:00:00 2001 From: Hugo Osvaldo Barrera Date: Mon, 30 Jan 2023 17:39:14 +0100 Subject: [PATCH] Use dict literal instead of dict() call --- vdirsyncer/cli/utils.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/vdirsyncer/cli/utils.py b/vdirsyncer/cli/utils.py index acd6dea..0f48a2e 100644 --- a/vdirsyncer/cli/utils.py +++ b/vdirsyncer/cli/utils.py @@ -27,15 +27,15 @@ STATUS_DIR_PERMISSIONS = 0o700 class _StorageIndex: def __init__(self): - self._storages = dict( - caldav="vdirsyncer.storage.dav.CalDAVStorage", - carddav="vdirsyncer.storage.dav.CardDAVStorage", - filesystem="vdirsyncer.storage.filesystem.FilesystemStorage", - http="vdirsyncer.storage.http.HttpStorage", - singlefile="vdirsyncer.storage.singlefile.SingleFileStorage", - google_calendar="vdirsyncer.storage.google.GoogleCalendarStorage", - google_contacts="vdirsyncer.storage.google.GoogleContactsStorage", - ) + self._storages = { + "caldav": "vdirsyncer.storage.dav.CalDAVStorage", + "carddav": "vdirsyncer.storage.dav.CardDAVStorage", + "filesystem": "vdirsyncer.storage.filesystem.FilesystemStorage", + "http": "vdirsyncer.storage.http.HttpStorage", + "singlefile": "vdirsyncer.storage.singlefile.SingleFileStorage", + "google_calendar": "vdirsyncer.storage.google.GoogleCalendarStorage", + "google_contacts": "vdirsyncer.storage.google.GoogleContactsStorage", + } def __getitem__(self, name): item = self._storages[name]