diff --git a/src/zc/buildout/buildout.py b/src/zc/buildout/buildout.py index e648f6f0865752297b17c2cdb2d6845df9d35b4b..e24ec4f3ea482838fb650f3bc6bb70d836c55933 100644 --- a/src/zc/buildout/buildout.py +++ b/src/zc/buildout/buildout.py @@ -1595,6 +1595,12 @@ class Options(DictMixin): def __repr__(self): return repr(dict(self)) + def __eq__(self, other): + try: + 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]*'