Skip to content

Commit

Permalink
Trac #13421: Remove signal handling around list(x)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Sep 1, 2012
1 parent ad701a3 commit 1216a76
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/sage/rings/polynomial/polynomial_real_mpfr_dense.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,10 @@ cdef class PolynomialRealDense(Polynomial):
elif isinstance(x, pari_gen):
x = [self._base_ring(w) for w in x.list()]
elif not isinstance(x, list):
sig_on()
try:
x = list(x)
except TypeError: # x is not iterable
x = [self._base_ring(x)]
finally:
sig_off()

sig_on()
degree = len(x) - 1
Expand Down

0 comments on commit 1216a76

Please sign in to comment.