Explorar o código

Minor typo fixes

Guillaume Ayoub %!s(int64=15) %!d(string=hai) anos
pai
achega
4f3b574e35
Modificáronse 1 ficheiros con 2 adicións e 5 borrados
  1. 2 5
      radicale/xmlutils.py

+ 2 - 5
radicale/xmlutils.py

@@ -36,14 +36,11 @@ NAMESPACES = {
     "C": "urn:ietf:params:xml:ns:caldav",
     "D": "DAV:",
     "CS": "http://calendarserver.org/ns/",
-    "ICAL": "http://apple.com/ns/ical/",
-}
+    "ICAL": "http://apple.com/ns/ical/"}
 
 
 for short, url in NAMESPACES.items():
-    if short == "D":
-        short = ""
-    ET._namespace_map[url] = short
+    ET._namespace_map[url] = "" if short == "D" else short
 
 
 def _pretty_xml(element, level=0):