Minor typo fixes
This commit is contained in:
parent
70e66ed070
commit
4f3b574e35
@ -36,14 +36,11 @@ NAMESPACES = {
|
|||||||
"C": "urn:ietf:params:xml:ns:caldav",
|
"C": "urn:ietf:params:xml:ns:caldav",
|
||||||
"D": "DAV:",
|
"D": "DAV:",
|
||||||
"CS": "http://calendarserver.org/ns/",
|
"CS": "http://calendarserver.org/ns/",
|
||||||
"ICAL": "http://apple.com/ns/ical/",
|
"ICAL": "http://apple.com/ns/ical/"}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
for short, url in NAMESPACES.items():
|
for short, url in NAMESPACES.items():
|
||||||
if short == "D":
|
ET._namespace_map[url] = "" if short == "D" else short
|
||||||
short = ""
|
|
||||||
ET._namespace_map[url] = short
|
|
||||||
|
|
||||||
|
|
||||||
def _pretty_xml(element, level=0):
|
def _pretty_xml(element, level=0):
|
||||||
|
Loading…
Reference in New Issue
Block a user