Commit 5da23d7d authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

Compare Options with sorted result, if possible.

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