Skip to content

Commit 78530fd

Browse files
committed
Version 19.0.7 - fixes for python 3.10
1 parent c6cafbb commit 78530fd

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

addon.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.6">
1+
<addon id="script.module.xbmcswift2" name="xbmcswift2" provider-name="Jonathan Beluch (jbel), enen92" version="19.0.7">
22
<requires>
33
<import addon="xbmc.python" version="3.0.0" />
44
</requires>
@@ -9,7 +9,7 @@
99
<license>GPL-3.0</license>
1010
<summary lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</summary>
1111
<description lang="en_GB">xbmcswift2 is a small framework to ease development of KODI addons.</description>
12-
<news>Add container.refresh</news>
12+
<news>Fixes for python 3.10 - move collections.MutableMapping to collections.abc.MutableMapping</news>
1313
<assets>
1414
<icon>icon.png</icon>
1515
</assets>

changelog.txt

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
CHANGES
22
=======
3+
Version 19.0.7 (23/11/2021)
4+
-------------
5+
- Fixes for python 3.10 - move collections.MutableMapping to collections.abc.MutableMapping
6+
37
Version 19.0.6 (3/10/2021)
48
-------------
59
- Add plugin.container_refresh (builtin Container.Refresh)

lib/xbmcswift2/storage.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def raw_dict(self):
107107
raise NotImplementedError
108108

109109

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

149-
initial_update = collections.MutableMapping.update
149+
initial_update = collections.abc.MutableMapping.update
150150

151151
def clear(self):
152152
super(_Storage, self).clear()

0 commit comments

Comments
 (0)