Skip to content

Commit aae8217

Browse files
committed
style
1 parent a1b89a7 commit aae8217

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

caldav/davclient.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import logging
33
import os
44
import sys
5+
import warnings
56
from types import TracebackType
67
from typing import Any
78
from typing import cast
@@ -12,7 +13,6 @@
1213
from typing import TYPE_CHECKING
1314
from typing import Union
1415
from urllib.parse import unquote
15-
import warnings
1616

1717
import niquests
1818
from lxml import etree
@@ -879,6 +879,7 @@ def auto_calendar(*largs, **kwargs) -> Iterable["Calendar"]:
879879
"""
880880
return next(auto_calendars(*largs, **kwargs), None)
881881

882+
882883
def auto_conn(*largs, **kwargs):
883884
"""A quite stubbed verison of get_davclient was included in the
884885
v1.5-release as auto_conn, but renamed a few days later. Probably
@@ -895,6 +896,7 @@ def auto_conn(*largs, **kwargs):
895896
)
896897
return get_davclient(*largs, **kwargs)
897898

899+
898900
def get_davclient(
899901
config_file: str = f"{os.environ.get('HOME')}/.config/calendar.conf",
900902
config_section="default",
@@ -973,4 +975,3 @@ def get_davclient(
973975
conn_params[key] = section[k]
974976
if conn_params:
975977
return DAVClient(**conn_params)
976-

tests/test_caldav.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@
4242
from .proxy import NonThreadingHTTPServer
4343
from .proxy import ProxyHandler
4444
from caldav import compatibility_hints
45-
from caldav.davclient import get_davclient
4645
from caldav.davclient import DAVClient
4746
from caldav.davclient import DAVResponse
47+
from caldav.davclient import get_davclient
4848
from caldav.elements import cdav
4949
from caldav.elements import dav
5050
from caldav.elements import ical

0 commit comments

Comments
 (0)