style() cleanup

pull/80/head
Martin Eigenmann 2021-03-28 21:10:24 +02:00
rodzic 98b6f3cccd
commit 0d92c07ef7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 069D1EE3806CA368
1 zmienionych plików z 3 dodań i 4 usunięć

Wyświetl plik

@ -11,11 +11,10 @@ from dateutil.rrule import rrule, rruleset, rrulestr
from dateutil.tz import UTC, gettz
from icalendar import Calendar
from icalendar.windows_to_olson import WINDOWS_TO_OLSON
from icalendar.prop import vDDDLists, vText
from pytz import timezone
from icalendar.windows_to_olson import WINDOWS_TO_OLSON
def now():
"""
@ -354,7 +353,7 @@ def parse_events(content, start=None, end=None, default_span=timedelta(days=7)):
end_tz = timezone(str(e.end.tzinfo))
except:
pass
# If we've been passed or constructed start/end values
# that are timezone naive, but the actual appointment
# start and end times are in a timezone, convert start
@ -443,7 +442,7 @@ def parse_rrule(component, tz=UTC):
# Add exdates to the rruleset
for exd in extract_exdates(component):
rule.exdate(exd.replace(tzinfo=None) if type(rdtstart) is date else exd)
# TODO: What about rdates and exrules?
# You really want an rrule for a component without rrule? Here you are.