mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #4516 from tk0miya/fix_BuildInfo__ne__
Fix BuildInfo comparison
This commit is contained in:
commit
36b8412a82
@ -189,6 +189,10 @@ class BuildInfo(object):
|
|||||||
return (self.config_hash == other.config_hash and
|
return (self.config_hash == other.config_hash and
|
||||||
self.tags_hash == other.tags_hash)
|
self.tags_hash == other.tags_hash)
|
||||||
|
|
||||||
|
def __ne__(self, other): # type: ignore
|
||||||
|
# type: (BuildInfo) -> bool
|
||||||
|
return not (self == other)
|
||||||
|
|
||||||
def dump(self, f):
|
def dump(self, f):
|
||||||
# type: (IO) -> None
|
# type: (IO) -> None
|
||||||
f.write('# Sphinx build info version 1\n'
|
f.write('# Sphinx build info version 1\n'
|
||||||
|
Loading…
Reference in New Issue
Block a user