diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-10-15 21:35:13 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-10-15 21:35:13 +0200 |
commit | 6c0bec3d7fb09bb89e95725f76597204b1de6269 (patch) | |
tree | 6e486cf4537913383907be724447d0868b52b85a /example/sp-wsgi | |
parent | 3714ce7abe92982decf8ecbf4fe463cabd725233 (diff) | |
parent | 20feb780c2b8b7b2145ee85117e12ebf0c3bfb28 (diff) | |
download | pysaml2-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-x | example/sp-wsgi/sp.py | 5 |
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 |