diff options
author | Clint Byrum <clint@fewbar.com> | 2015-05-28 11:05:25 -0700 |
---|---|---|
committer | Clint Byrum <clint@fewbar.com> | 2015-05-28 11:05:25 -0700 |
commit | f412b2262db8c6bda32b2758e5ecb944ad598ecd (patch) | |
tree | 5a1a51f18eefd7a3cd48039f5b37efbad7cadfaf /src/saml2/cache.py | |
parent | 39b077444baaece25ea400a64ba92d8cdebc1b4a (diff) | |
download | pysaml2-f412b2262db8c6bda32b2758e5ecb944ad598ecd.tar.gz |
Adapt to python3 shelve.open behavior changes
When running tests between python2 and python3, shelve.open's behavior
has changed. These changes make it so that a previous run of one python
version of tests will not interfere with the current run. There are
still some issues with the database filename which may need to be
addressed.
Diffstat (limited to 'src/saml2/cache.py')
-rw-r--r-- | src/saml2/cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/saml2/cache.py b/src/saml2/cache.py index d14978e7..ae00afb8 100644 --- a/src/saml2/cache.py +++ b/src/saml2/cache.py @@ -23,7 +23,7 @@ class CacheError(SAMLError): class Cache(object): def __init__(self, filename=None): if filename: - self._db = shelve.open(filename, writeback=True) + self._db = shelve.open(filename, writeback=True, protocol=2) self._sync = True else: self._db = {} |