Skip to content

Commit

Permalink
detail
Browse files Browse the repository at this point in the history
  • Loading branch information
fchapoton committed May 12, 2019
1 parent a87b644 commit b30879a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/sage/symbolic/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,7 @@ def __richcmp__(self, other, op):
sage: p != s
True
"""
equality = (self.__class__ == other.__class__ and
self._name == other._name)
if equality:
if self.__class__ == other.__class__ and self._name == other._name:
return op in [op_EQ, op_GE, op_LE]
else:
return NotImplemented
Expand Down

0 comments on commit b30879a

Please sign in to comment.