Skip to content

Commit

Permalink
_pytest._py.path: remove _cmp compat
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Oct 19, 2022
1 parent e9f7a68 commit 4e200fe
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/_pytest/_py/path.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,13 +330,6 @@ def __add__(self, other):
"""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
Expand Down

0 comments on commit 4e200fe

Please sign in to comment.