Skip to content

Commit

Permalink
Merge pull request #29 from AzureAD/release-0.1.1
Browse files Browse the repository at this point in the history
Release 0.1.1
  • Loading branch information
rayluo authored Jul 17, 2019
2 parents efdfeba + 1876658 commit f6d52b0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 14 deletions.
2 changes: 1 addition & 1 deletion msal_extensions/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Provides auxiliary functionality to the `msal` package."""
__version__ = "0.1.0"
__version__ = "0.1.1"

import sys

Expand Down
12 changes: 0 additions & 12 deletions msal_extensions/token_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,18 +77,6 @@ def _read(self):
with open(self._cache_location, 'r') as handle:
return handle.read()

def add(self, event, **kwargs):
with CrossPlatLock(self._lock_location):
if self._needs_refresh():
try:
self.deserialize(self._read())
except IOError as exp:
if exp.errno != errno.ENOENT:
raise
super(FileTokenCache, self).add(event, **kwargs) # pylint: disable=duplicate-code
self._write(self.serialize())
self._last_sync = os.path.getmtime(self._cache_location)

def modify(self, credential_type, old_entry, new_key_value_pairs=None):
with CrossPlatLock(self._lock_location):
if self._needs_refresh():
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
'Development Status :: 2 - Pre-Alpha',
],
install_requires=[
'msal~=0.4',
'msal>=0.4.1,<0.6.0',
'portalocker~=1.0',
],
tests_require=['pytest'],
Expand Down

0 comments on commit f6d52b0

Please sign in to comment.