Commit 78bd8a83 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Julien Muchembled

Compare Options with sorted result, if possible.

parent fb39db8c
......@@ -1584,6 +1584,12 @@ class Options(DictMixin):
def __repr__(self):
return repr(dict(self))
def __eq__(self, other):
return sorted(self.items()) == sorted(other.items())
except Exception:
return super(Options, self).__eq__(other)
Buildout.Options = Options
_spacey_nl = re.compile('[ \t\r\f\v]*\n[ \t\r\f\v\n]*'
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment