Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
fix doctest; remove crap
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Apr 10, 2014
1 parent 57e8254 commit 852ba6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/sage/sets/real_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,8 @@ def contains(self, x):
sage: i.contains(2)
True
"""
cmp_lower = cmp(self._lower, x)
cmp_upper = cmp(x, self._upper)
cmp_lower = cmp(self._lower._value, x)
cmp_upper = cmp(x, self._upper._value)
if cmp_lower == cmp_upper == -1:
return True
if cmp_lower == 0:
Expand Down
6 changes: 1 addition & 5 deletions src/sage/symbolic/pynac.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,7 @@ def unpack_operands(Expression ex):
sage: type(unpack_operands(t))
<type 'tuple'>
sage: map(type, unpack_operands(t))
[<type 'sage.rings.integer.Integer'>,
<type 'sage.rings.integer.Integer'>,
<type 'sage.symbolic.expression.Expression'>,
<type 'sage.symbolic.expression.Expression'>,
<type 'sage.symbolic.expression.Expression'>]
[<type 'sage.rings.integer.Integer'>, <type 'sage.rings.integer.Integer'>, <type 'sage.symbolic.expression.Expression'>, <type 'sage.symbolic.expression.Expression'>, <type 'sage.symbolic.expression.Expression'>]
sage: u = SR._force_pyobject((t, x^2))
sage: unpack_operands(u)
((1, 2, x, x + 1, x + 2), x^2)
Expand Down

0 comments on commit 852ba6f

Please sign in to comment.