Skip to content

Commit f05a967

Browse files
committed
fix mistake
1 parent 3a2e93b commit f05a967

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/sage/libs/giac/giac.pyx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -790,7 +790,7 @@ cdef class Pygen(GiacMethods_base):
790790
#NB: the != here gives problems with the __richcmp__ function
791791
#if (s!=None):
792792
# so it's better to use isinstance
793-
if (isinstance(s,None.__class__)):
793+
if (isinstance(s, None.__class__)):
794794
# Do NOT replace with: self=GIACNULL (cf the doctest in __repr__
795795
sig_on()
796796
self.gptr = new gen ((<Pygen>GIACNULL).gptr[0])
@@ -959,13 +959,13 @@ cdef class Pygen(GiacMethods_base):
959959
else:
960960
raise IndexError('list index %s out of range'%(i))
961961
else:
962-
if isinstance(i,slice):
962+
if isinstance(i, slice):
963963
sig_on()
964964
result = gen(_getgiacslice(self,i),<short int>self._subtype)
965965
sig_off()
966966
return _wrap_gen(result)
967967
# add support for multi indexes
968-
elif isinstance(i,tuple):
968+
elif isinstance(i, tuple):
969969
if(len(i)==2):
970970
return self[i[0]][i[1]]
971971
elif(len(i)==1):
@@ -1526,7 +1526,7 @@ cdef class Pygen(GiacMethods_base):
15261526
sage: libgiac.integrate(cos(y), y).sage()
15271527
sin(π)
15281528
"""
1529-
if isinstance(R,SR.__class__):
1529+
if isinstance(R, SR.__class__):
15301530
# Try to convert some functions names to the symbolic ring
15311531
lsymbols = symbol_table['giac'].copy()
15321532
#lsymbols.update(locals)
@@ -1594,7 +1594,7 @@ cdef class Pygen(GiacMethods_base):
15941594
sage: vector(v+v/3,QQ)
15951595
(0, 4/3, 8/3, 4, 16/3, 20/3, 8, 28/3, 32/3, 12)
15961596
"""
1597-
if(isinstance(R, None.__class__)):
1597+
if isinstance(R, None.__class__):
15981598
R=ZZ
15991599
16001600
v = self.dim()
@@ -1780,9 +1780,9 @@ cdef vecteur _wrap_pylist(L) except +:
17801780
cdef vecteur * V
17811781
cdef int i
17821782
1783-
if isinstance(L, (tuple, list, range):
1784-
n=len(L)
1785-
V=new vecteur()
1783+
if isinstance(L, (tuple, list, range)):
1784+
n = len(L)
1785+
V = new vecteur()
17861786
17871787
sig_on()
17881788
for i in range(n):

0 commit comments

Comments
 (0)