diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/dbus-python/files/dbus-python-1.2.16-py39.patch | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/dbus-python/files/dbus-python-1.2.16-py39.patch')
| -rw-r--r-- | dev-python/dbus-python/files/dbus-python-1.2.16-py39.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/dev-python/dbus-python/files/dbus-python-1.2.16-py39.patch b/dev-python/dbus-python/files/dbus-python-1.2.16-py39.patch new file mode 100644 index 000000000000..93db26cfcefc --- /dev/null +++ b/dev-python/dbus-python/files/dbus-python-1.2.16-py39.patch @@ -0,0 +1,33 @@ +From 6a899a9174c8008ba5fb576238ea4d7c970453c3 Mon Sep 17 00:00:00 2001 +From: Simon McVittie <smcv@collabora.com> +Date: Tue, 14 Jan 2020 15:29:43 +0000 +Subject: [PATCH] service: Adjust to deprecation of collections.Sequence + +Since Python 3.3 the recommended location is collections.abc.Sequence, +and the collections.Sequence alias will be removed in 3.9. + +Signed-off-by: Simon McVittie <smcv@collabora.com> +--- + dbus/service.py | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/dbus/service.py b/dbus/service.py +index fd57054..0c8695a 100644 +--- a/dbus/service.py ++++ b/dbus/service.py +@@ -32,7 +32,11 @@ import sys + import logging + import threading + import traceback +-from collections import Sequence ++try: ++ from collections.abc import Sequence ++except ImportError: ++ # Python 2 (and 3.x < 3.3, but we don't support those) ++ from collections import Sequence + + import _dbus_bindings + from dbus import ( +-- +2.26.2 + |
