summaryrefslogtreecommitdiff
path: root/example/sp-wsgi
diff options
context:
space:
mode:
authorRoland Hedberg <roland.hedberg@adm.umu.se>2015-10-15 21:35:13 +0200
committerRoland Hedberg <roland.hedberg@adm.umu.se>2015-10-15 21:35:13 +0200
commit6c0bec3d7fb09bb89e95725f76597204b1de6269 (patch)
tree6e486cf4537913383907be724447d0868b52b85a /example/sp-wsgi
parent3714ce7abe92982decf8ecbf4fe463cabd725233 (diff)
parent20feb780c2b8b7b2145ee85117e12ebf0c3bfb28 (diff)
downloadpysaml2-6c0bec3d7fb09bb89e95725f76597204b1de6269.tar.gz
Merge pull request #269 from helmus/SimpleCookie-import-fallback
Add fallback for SimpleCookie import
Diffstat (limited to 'example/sp-wsgi')
-rwxr-xr-xexample/sp-wsgi/sp.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/example/sp-wsgi/sp.py b/example/sp-wsgi/sp.py
index f5fcb4a7..014df3ae 100755
--- a/example/sp-wsgi/sp.py
+++ b/example/sp-wsgi/sp.py
@@ -4,7 +4,10 @@ import logging
import re
import argparse
import os
-from future.backports.http.cookies import SimpleCookie
+try:
+ from future.backports.http.cookies import SimpleCookie
+except:
+ from Cookie import SimpleCookie
import six
from saml2.extension.pefim import SPCertEnc