Don't use isinstance(root, ET.Element) as ET.Element is a function in Python 2.6
This commit is contained in:
parent
e9935ae1a6
commit
080e4984aa
@ -126,7 +126,7 @@ def name_from_path(path, calendar):
|
||||
def props_from_request(root, actions=("set", "remove")):
|
||||
"""Return a list of properties as a dictionary."""
|
||||
result = OrderedDict()
|
||||
if not isinstance(root, ET.Element):
|
||||
if not hasattr(root, "tag"):
|
||||
root = ET.fromstring(root.encode("utf8"))
|
||||
|
||||
for action in actions:
|
||||
|
Loading…
Reference in New Issue
Block a user