Skip to content

Commit

Permalink
Version 19.0.7 - fixes for python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Nov 23, 2021
1 parent c6cafbb commit 78530fd
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.6">
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.7">
<requires>
<import addon="xbmc.python" version="3.0.0" />
</requires>
Expand All @@ -9,7 +9,7 @@
<license>GPL-3.0</license>
<summary lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</summary>
<description lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</description>
<news>Add container.refresh</news>
<news>Fixes for python 3.10 - move collections.MutableMapping to collections.abc.MutableMapping</news>
<assets>
<icon>icon.png</icon>
</assets>
Expand Down
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGES
=======
Version 19.0.7 (23/11/2021)
-------------
- Fixes for python 3.10 - move collections.MutableMapping to collections.abc.MutableMapping

Version 19.0.6 (3/10/2021)
-------------
- Add plugin.container_refresh (builtin Container.Refresh)
Expand Down
4 changes: 2 additions & 2 deletions lib/xbmcswift2/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def raw_dict(self):
raise NotImplementedError


class _Storage(collections.MutableMapping, _PersistentDictMixin):
class _Storage(collections.abc.MutableMapping, _PersistentDictMixin):
'''Storage that acts like a dict but also can persist to disk.
:param filename: An absolute filepath to reprsent the storage on disk. The
Expand Down Expand Up @@ -146,7 +146,7 @@ def raw_dict(self):
'''Returns the wrapped dict'''
return self._items

initial_update = collections.MutableMapping.update
initial_update = collections.abc.MutableMapping.update

def clear(self):
super(_Storage, self).clear()
Expand Down

0 comments on commit 78530fd

Please sign in to comment.