File: 0001-Fix-deprecation-warnings.patch

package info (click to toggle)
python-scantree 0.0.1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 172 kB
  • sloc: python: 545; makefile: 3
file content (30 lines) | stat: -rw-r--r-- 1,014 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Tomas Aschan <tomasl@spotify.com>
Date: Wed, 30 Dec 2020 11:35:43 +0100
Subject: Fix deprecation warnings

---
 src/scantree/_path.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/scantree/_path.py b/src/scantree/_path.py
index e5f4c56..eef0b66 100644
--- a/src/scantree/_path.py
+++ b/src/scantree/_path.py
@@ -25,7 +25,7 @@ class RecursionPath(object):
     root = attr.ib()
     relative = attr.ib()
     real = attr.ib()
-    _dir_entry = attr.ib(cmp=False)
+    _dir_entry = attr.ib(eq=False, order=False)
 
     @classmethod
     def from_root(cls, directory):
@@ -123,7 +123,7 @@ RecursionPath.__getstate__ = RecursionPath._getstate
 RecursionPath.__setstate__ = RecursionPath._setstate
 
 
-@attr.s(slots=True, cmp=False)
+@attr.s(slots=True, eq=False, order=False)
 class DirEntryReplacement(object):
     """Pure python implementation of the `DirEntry` interface (found in the external
     `scandir` module in Python < 3.5 or builtin `posix` module in Python >= 3.5)