Fix BuildInfo comparison

This commit is contained in:
Takeshi KOMIYA
2018-01-29 22:25:59 +09:00
parent dcbebb1286
commit e4af2a1c8f

View File

@@ -189,6 +189,10 @@ class BuildInfo(object):
return (self.config_hash == other.config_hash and
self.tags_hash == other.tags_hash)
def __ne__(self, other): # type: ignore
# type: (BuildInfo) -> bool
return not (self == other)
def dump(self, f):
# type: (IO) -> None
f.write('# Sphinx build info version 1\n'