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

Commit 852ba6f

Browse files
committed
fix doctest; remove crap
1 parent 57e8254 commit 852ba6f

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/sage/sets/real_set.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,8 @@ def contains(self, x):
582582
sage: i.contains(2)
583583
True
584584
"""
585-
cmp_lower = cmp(self._lower, x)
586-
cmp_upper = cmp(x, self._upper)
585+
cmp_lower = cmp(self._lower._value, x)
586+
cmp_upper = cmp(x, self._upper._value)
587587
if cmp_lower == cmp_upper == -1:
588588
return True
589589
if cmp_lower == 0:

src/sage/symbolic/pynac.pyx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,7 @@ def unpack_operands(Expression ex):
114114
sage: type(unpack_operands(t))
115115
<type 'tuple'>
116116
sage: map(type, unpack_operands(t))
117-
[<type 'sage.rings.integer.Integer'>,
118-
<type 'sage.rings.integer.Integer'>,
119-
<type 'sage.symbolic.expression.Expression'>,
120-
<type 'sage.symbolic.expression.Expression'>,
121-
<type 'sage.symbolic.expression.Expression'>]
117+
[<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'>]
122118
sage: u = SR._force_pyobject((t, x^2))
123119
sage: unpack_operands(u)
124120
((1, 2, x, x + 1, x + 2), x^2)

0 commit comments

Comments
 (0)