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

Commit

Permalink
23077: make complex field handling consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Jun 5, 2017
1 parent 9b8ab0f commit bb56bba
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/libs/pynac/pynac.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1331,10 +1331,7 @@ cdef py_float(n, PyObject* kwds):
try:
return (<object>kwds)['parent'](n)
except TypeError:
try:
return (<object>kwds)['parent'].complex_field()(n)
except AttributeError:
return CC(n)
return (<object>kwds)['parent'].complex_field()(n)
else:
try:
return RR(n)
Expand Down

0 comments on commit bb56bba

Please sign in to comment.