Mercurial > hg
changeset 29298:82f6193ff2bc
util: add __ne__ to filestat class for consistency
This is follow up for ca4065028e00, which introduced filestat class.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Fri, 03 Jun 2016 00:44:20 +0900 |
parents | 50fef8252820 |
children | 76b07a5c064b |
files | mercurial/util.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/util.py Sat Apr 16 16:01:24 2016 -0700 +++ b/mercurial/util.py Fri Jun 03 00:44:20 2016 +0900 @@ -1455,6 +1455,9 @@ except AttributeError: return False + def __ne__(self, other): + return not self == other + class atomictempfile(object): '''writable file object that atomically updates a file