diff options
author | Tobias Brox <tobias@redpill-linpro.com> | 2020-05-13 23:05:32 +0200 |
---|---|---|
committer | Tobias Brox <tobias@redpill-linpro.com> | 2020-05-13 23:05:32 +0200 |
commit | 69ffdce3c4e55af2e91948a6119b42c282899f52 (patch) | |
tree | 23293096aa097dc055cee6591a04b6316663ab68 /caldav/lib/namespace.py | |
parent | 555d4c1d838ccabe7b70b05f076a1abf91ad9808 (diff) | |
download | python-caldav-69ffdce3c4e55af2e91948a6119b42c282899f52.zip |
cleaning up a weird bugfix - ref https://bitbucket.org/cyrilrbt/caldav/issue/29/centos59-minifi and https://github.com/python-caldav/caldav/issues/44
Diffstat (limited to 'caldav/lib/namespace.py')
-rw-r--r-- | caldav/lib/namespace.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/caldav/lib/namespace.py b/caldav/lib/namespace.py index b538737..30f5c13 100644 --- a/caldav/lib/namespace.py +++ b/caldav/lib/namespace.py @@ -1,25 +1,14 @@ #!/usr/bin/env python # -*- encoding: utf-8 -*- -# nsmap2 is ref https://bitbucket.org/cyrilrbt/caldav/issue/29/centos59-minifi -# This looks wrong - should think more about it at a later stage. -# -- Tobias Brox, 2014-02-1 - nsmap = { - "D": "DAV", - "C": "urn:ietf:params:xml:ns:caldav", - "I": "http://apple.com/ns/ical/", -} - -nsmap2 = { "D": "DAV:", "C": "urn:ietf:params:xml:ns:caldav", "I": "http://apple.com/ns/ical/", } - def ns(prefix, tag=None): - name = "{%s}" % nsmap2[prefix] + name = "{%s}" % nsmap[prefix] if tag is not None: name = "%s%s" % (name, tag) return name |