File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
src/sage/rings/finite_rings Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,13 @@ from sage.arith.long cimport (
85
85
integer_check_long, integer_check_long_py, is_small_python_int)
86
86
87
87
import sage.rings.rational as rational
88
- from sage.libs.pari.all import pari, PariError
88
+
89
+ try :
90
+ from sage.libs.pari.all import pari, PariError
91
+ except ImportError :
92
+ class PariError (Exception ):
93
+ pass
94
+
89
95
import sage.rings.integer_ring as integer_ring
90
96
import sage.rings.rational_field
91
97
Original file line number Diff line number Diff line change 72
72
import sage .rings .integer_ring as integer_ring
73
73
import sage .rings .quotient_ring as quotient_ring
74
74
75
- from sage .libs .pari .all import pari , PariError
75
+ try :
76
+ from sage .libs .pari .all import pari , PariError
77
+ except ImportError :
78
+ class PariError (Exception ):
79
+ pass
76
80
77
81
from sage .misc .cachefunc import cached_method
78
82
You can’t perform that action at this time.
0 commit comments