fix found by actions/python3.11: ./radicale/item/__init__.py:167:28: E721 do not compare types, for exact checks use is / is not, for instance checks use isinstance()
This commit is contained in:
@@ -164,7 +164,7 @@ def check_and_sanitize_items(
|
|||||||
ref_value_param = component.dtstart.params.get("VALUE")
|
ref_value_param = component.dtstart.params.get("VALUE")
|
||||||
for dates in chain(component.contents.get("exdate", []),
|
for dates in chain(component.contents.get("exdate", []),
|
||||||
component.contents.get("rdate", [])):
|
component.contents.get("rdate", [])):
|
||||||
if all(type(d) == type(ref_date) for d in dates.value):
|
if all(type(d) is type(ref_date) for d in dates.value):
|
||||||
continue
|
continue
|
||||||
for i, date in enumerate(dates.value):
|
for i, date in enumerate(dates.value):
|
||||||
dates.value[i] = ref_date.replace(
|
dates.value[i] = ref_date.replace(
|
||||||
|
|||||||
Reference in New Issue
Block a user