summaryrefslogtreecommitdiff
path: root/src/saml2/pack.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/saml2/pack.py')
-rw-r--r--src/saml2/pack.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/saml2/pack.py b/src/saml2/pack.py
index cad55dfb..fc651645 100644
--- a/src/saml2/pack.py
+++ b/src/saml2/pack.py
@@ -8,9 +8,10 @@ Bindings normally consists of three parts:
"""
import base64
-# [DeprecationWarning] Fixed: cgi.escape is deprecated, use html.escape instead
-try: import html
-except: import cgi as html
+try:
+ import html
+except:
+ import cgi as html
import logging