Skip to content

Commit

Permalink
Add comments per review [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Aug 14, 2018
1 parent 3daaadb commit 5f6aab2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.rst
Expand Up @@ -2,7 +2,7 @@
Changes
=========

4.5.1 (unreleased)
4.6.0 (unreleased)
==================

- Add support for Python 3.7.
Expand Down
4 changes: 4 additions & 0 deletions src/zope/schema/_bootstrapinterfaces.py
Expand Up @@ -36,6 +36,8 @@ def doc(self):
return self.__class__.__doc__

def __lt__(self, other):
# There's no particular reason we choose to sort this way,
# it's just the way we used to do it with __cmp__.
if not hasattr(other, 'args'):
return True
return self.args < other.args
Expand All @@ -45,6 +47,8 @@ def __eq__(self, other):
return False
return self.args == other.args

# XXX : This is probably inconsistent with __eq__, which is
# a violation of the language spec.
__hash__ = zope.interface.Invalid.__hash__ # python3

def __repr__(self): # pragma: no cover
Expand Down
2 changes: 1 addition & 1 deletion version.txt
@@ -1 +1 @@
4.5.1.dev0
4.6.0.dev0

0 comments on commit 5f6aab2

Please sign in to comment.