mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-07 07:07:36 +03:00
the replaced syntax is deprecated
This commit is contained in:
parent
00fb296ed7
commit
4212f6dfe0
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ def proppatch(path, xml_request, calendar):
|
||||||
|
|
||||||
for action in ("set", "remove"):
|
for action in ("set", "remove"):
|
||||||
action_element = root.find(_tag("D", action))
|
action_element = root.find(_tag("D", action))
|
||||||
if action_element:
|
if action_element is not None:
|
||||||
prop_element = action_element.find(_tag("D", "prop"))
|
prop_element = action_element.find(_tag("D", "prop"))
|
||||||
prop_list = prop_element.getchildren()
|
prop_list = prop_element.getchildren()
|
||||||
props.extend(prop.tag for prop in prop_list)
|
props.extend(prop.tag for prop in prop_list)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue