_pytest._py.path: remove _cmp compat

This commit is contained in:
Anthony Sottile 2022-10-19 12:52:25 -04:00
parent 8a151774b8
commit 00e2f1c15c
1 changed files with 0 additions and 7 deletions

View File

@ -330,13 +330,6 @@ class PathBase:
"""return new path object with 'other' added to the basename"""
return self.new(basename=self.basename + str(other))
def __cmp__(self, other):
"""return sort value (-1, 0, +1)."""
try:
return cmp(self.strpath, other.strpath)
except AttributeError:
return cmp(str(self), str(other)) # self.path, other.path)
def __lt__(self, other):
try:
return self.strpath < other.strpath