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

Commit

Permalink
Replace pari_catch_sig_on by sig_on
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Mar 15, 2016
1 parent edc5ce2 commit 5fb408d
Show file tree
Hide file tree
Showing 13 changed files with 452 additions and 465 deletions.
3 changes: 1 addition & 2 deletions src/sage/libs/pari/closure.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ from cpython.ref cimport Py_INCREF

include "cysignals/signals.pxi"
from .paridecl cimport *
include "sage/libs/pari/pari_err.pxi"

from pari_instance cimport pari_instance
from gen cimport objtogen
Expand Down Expand Up @@ -164,7 +163,7 @@ cpdef gen objtoclosure(f):
...
PariError: call_python: forbidden multiplication t_VEC (1 elts) * t_VEC (1 elts)
"""
pari_catch_sig_on()
sig_on()
# Convert f to a t_INT containing the address of f
cdef GEN f_int = utoi(<ulong><PyObject*>f)
# Create a t_CLOSURE which calls call_python() with py_func equal to f
Expand Down
Loading

0 comments on commit 5fb408d

Please sign in to comment.