void-packages/srcpkgs/backintime/patches/e1ae23ddc0b4229053e3e9c6c61...

52 lines
1.5 KiB
Diff

From e1ae23ddc0b4229053e3e9c6c61adcb7f3d8e9b3 Mon Sep 17 00:00:00 2001
From: Germar Reitze <germar.reitze@gmail.com>
Date: Mon, 5 Jul 2021 19:11:58 +0200
Subject: [PATCH] Tests no longer work with Python 3.10 (fixes: #1175)
---
CHANGES | 5 ++++-
common/tools.py | 7 +++++--
2 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/CHANGES b/CHANGES
index c01501f2..0eb5b489 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,7 +1,10 @@
Back In Time
+Version 1.3.2
+* Fix bug: Tests no longer work with Python 3.10 (https://github.com/bit-team/backintime/issues/1175)
+
Version 1.3.1
-* bump version, forgot to push branch to Github before releasing
+* bump version, forgot to push branch to Github before releasing
Version 1.3.0
* Merge PR: Fix FileNotFoundError exception in mount.mounted, Thanks tatokis (https://github.com/bit-team/backintime/pull/1157)
diff --git a/common/tools.py b/common/tools.py
index 528da707..12645224 100644
--- a/common/tools.py
+++ b/common/tools.py
@@ -25,7 +25,10 @@
import errno
import gzip
import tempfile
-import collections
+try:
+ from collections.abc import MutableSet
+except ImportError:
+ from collections import MutableSet
import hashlib
import ipaddress
import atexit
@@ -1802,7 +1805,7 @@ def reset(self, path):
self.history = [path,]
self.index = 0
-class OrderedSet(collections.MutableSet):
+class OrderedSet(MutableSet):
"""
OrderedSet from Python recipe
http://code.activestate.com/recipes/576694/