Skip to content

Commit 6c0bec3

Browse files
author
Roland Hedberg
committed
Merge pull request #269 from helmus/SimpleCookie-import-fallback
Add fallback for SimpleCookie import
2 parents 3714ce7 + 20feb78 commit 6c0bec3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

example/sp-wsgi/sp.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
import re
55
import argparse
66
import os
7-
from future.backports.http.cookies import SimpleCookie
7+
try:
8+
from future.backports.http.cookies import SimpleCookie
9+
except:
10+
from Cookie import SimpleCookie
811
import six
912

1013
from saml2.extension.pefim import SPCertEnc

0 commit comments

Comments
 (0)