Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 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 | 1eff545cef52 |
children | b501579147f1 |
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