Skip to content

Commit 71b5301

Browse files
authored
Removing FileTokenCache.add overload. (#27)
Fixes #26
1 parent efdfeba commit 71b5301

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

msal_extensions/token_cache.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -77,18 +77,6 @@ def _read(self):
7777
with open(self._cache_location, 'r') as handle:
7878
return handle.read()
7979

80-
def add(self, event, **kwargs):
81-
with CrossPlatLock(self._lock_location):
82-
if self._needs_refresh():
83-
try:
84-
self.deserialize(self._read())
85-
except IOError as exp:
86-
if exp.errno != errno.ENOENT:
87-
raise
88-
super(FileTokenCache, self).add(event, **kwargs) # pylint: disable=duplicate-code
89-
self._write(self.serialize())
90-
self._last_sync = os.path.getmtime(self._cache_location)
91-
9280
def modify(self, credential_type, old_entry, new_key_value_pairs=None):
9381
with CrossPlatLock(self._lock_location):
9482
if self._needs_refresh():

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
'Development Status :: 2 - Pre-Alpha',
1717
],
1818
install_requires=[
19-
'msal~=0.4',
19+
'msal~=0.4.1',
2020
'portalocker~=1.0',
2121
],
2222
tests_require=['pytest'],

0 commit comments

Comments
 (0)