From: zuber Date: Thu, 15 Oct 2009 17:35:23 +0000 (+0200) Subject: FIX: Changed ET references (which was undefined) to etree in etree module. X-Git-Tag: 22.4~32^2~18^2~1^2~3 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/715bf214140fce446dbadb4d378ab22ac20924ef?ds=inline;hp=-c FIX: Changed ET references (which was undefined) to etree in etree module. --- 715bf214140fce446dbadb4d378ab22ac20924ef diff --git a/cas_provider/etree.py b/cas_provider/etree.py index eb6f0be..3f95751 100644 --- a/cas_provider/etree.py +++ b/cas_provider/etree.py @@ -21,10 +21,10 @@ except ImportError: import elementtree.ElementTree as etree try: - register_namespace = ET.register_namespace + register_namespace = etree.register_namespace except AttributeError: def register_namespace(prefix, uri): - ET._namespace_map[uri] = prefix + etree._namespace_map[uri] = prefix def ElementRoot(*args, **kwargs): return etree.Element(*args, **kwargs)