mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 09:58:31 +07:00
Don't define __ne__ methods, they're implicit since Py3 (#2735)
This commit is contained in:
@@ -138,9 +138,6 @@ class File:
|
||||
self.url == other.url
|
||||
)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
def __repr__(self):
|
||||
return (
|
||||
f"File(src_path='{self.src_path}', dest_path='{self.dest_path}',"
|
||||
|
||||
@@ -49,9 +49,6 @@ class Page:
|
||||
self.file == other.file
|
||||
)
|
||||
|
||||
def __ne__(self, other):
|
||||
return not self.__eq__(other)
|
||||
|
||||
def __repr__(self):
|
||||
title = f"'{self.title}'" if (self.title is not None) else '[blank]'
|
||||
url = self.abs_url or self.file.url
|
||||
|
||||
Reference in New Issue
Block a user