_pytest._py.path: remove _cmp compat
This commit is contained in:
parent
8a151774b8
commit
00e2f1c15c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue