summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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