Don't define __ne__ methods, they're implicit since Py3 (#2735)

This commit is contained in:
Oleh Prypin
2021-12-30 23:18:35 +02:00
committed by GitHub
parent 7e69cc5f68
commit dc35569ade
2 changed files with 0 additions and 6 deletions

View File

@@ -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}',"

View File

@@ -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