MINGW-packages/mingw-w64-gnatstudio/002-Fix-collections.abc.MutableMapping-import-in-gs_utils-for-Python-3.10.patch
2025-01-27 15:44:16 +01:00

16 lines
567 B
Diff

# In Python 3.10, the abstract base class (ABC) MutableMapping
# was moved from the 'collections' module to 'collections.abc'.
# Reference: https://docs.python.org/3.9/library/collections.html
#
--- a/share/support/core/gs_utils/__init__.py
+++ b/share/support/core/gs_utils/__init__.py
@@ -2,7 +2,7 @@
# exported by GPS to make it easier to write plugins
from GPS import pwd, cd, Action, EditorBuffer, MDI
-from collections import MutableMapping as DictMixin
+from collections.abc import MutableMapping as DictMixin
import types
import GPS
import GPS.Browsers