# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1286728314 -7200
# Node ID 470e6e6c7dd331d5e159fa05b33b904e4fb98ad0
# Parent  5865f921d235d02cf17590b63e452cd90f528ed7
#10115: Change _sig_on to sig_on()

diff -r 5865f921d235 -r 470e6e6c7dd3 programming/compiled_pyrex/factorial.pyx
--- a/programming/compiled_pyrex/factorial.pyx	Fri Oct 08 15:15:19 2010 -0700
+++ b/programming/compiled_pyrex/factorial.pyx	Sun Oct 10 18:31:54 2010 +0200
@@ -55,16 +55,16 @@
     mpz_init(f)
     mpz_set_si(f, n)
 
-    # The _sig_on / _sig_off commands make it so
+    # The sig_on() / sig_off() commands make it so
     # this calculation is Ctrl-C interruptable.
     # These should *only* be used to wrap code
     # that compiles to pure C, i.e., doesn't access
     # any of the Python library. 
-    _sig_on
+    sig_on()
     for i from 2 <= i <= n-1:
         mpz_mul_si(f, f, i)
     s = mpz_get_str(NULL, 32, f)
-    _sig_off
+    sig_off()
     
     r = int(s, 32)
     free(s)
diff -r 5865f921d235 -r 470e6e6c7dd3 programming/sagex/factorial.spyx
--- a/programming/sagex/factorial.spyx	Fri Oct 08 15:15:19 2010 -0700
+++ b/programming/sagex/factorial.spyx	Sun Oct 10 18:31:54 2010 +0200
@@ -55,16 +55,16 @@
     mpz_init(f)
     mpz_set_si(f, n)
 
-    # The _sig_on / _sig_off commands make it so
+    # The sig_on() / sig_off() commands make it so
     # this calculation is Ctrl-C interruptable.
     # These should *only* be used to wrap code
     # that compiles to pure C, i.e., doesn't access
     # any of the Python library. 
-    _sig_on
+    sig_on()
     for i from 2 <= i <= n-1:
         mpz_mul_si(f, f, i)
     s = mpz_get_str(NULL, 32, f)
-    _sig_off
+    sig_off()
     
     r = int(s, 32)
     free(s)
