@@ -198,9 +198,7 @@ async def _find_principal_impl(self, url) -> str:
198198 # E.g. Synology NAS
199199 # See https://github.com/pimutils/vdirsyncer/issues/498
200200 dav_logger .debug (
201- "No current-user-principal returned, re-using URL {}" .format (
202- response .url
203- )
201+ f"No current-user-principal returned, re-using URL { response .url } "
204202 )
205203 return response .url .human_repr ()
206204 return urlparse .urljoin (str (response .url ), rv .text ).rstrip ("/" ) + "/"
@@ -649,9 +647,7 @@ def _parse_prop_responses(self, root, handled_hrefs=None):
649647 contenttype = getattr (props .find ("{DAV:}getcontenttype" ), "text" , None )
650648 if not self ._is_item_mimetype (contenttype ):
651649 dav_logger .debug (
652- "Skipping {!r}, {!r} != {!r}." .format (
653- href , contenttype , self .item_mimetype
654- )
650+ f"Skipping { href !r} , { contenttype !r} != { self .item_mimetype !r} ."
655651 )
656652 continue
657653
@@ -831,9 +827,7 @@ def _get_list_filters(components, start, end):
831827 start = start .strftime (CALDAV_DT_FORMAT )
832828 end = end .strftime (CALDAV_DT_FORMAT )
833829
834- timefilter = '<C:time-range start="{start}" end="{end}"/>' .format (
835- start = start , end = end
836- )
830+ timefilter = f'<C:time-range start="{ start } " end="{ end } "/>'
837831 else :
838832 timefilter = ""
839833
0 commit comments