@@ -1151,7 +1151,7 @@ def form_list_of_cusps(self):
11511151
11521152 full_domain = False # Says that we are not done yet!
11531153
1154- v = [False for r in range (sP )]
1154+ v = [False for _ in range (sP )]
11551155 # This initializes a list indexed by P^1(Z/NZ) which keeps track of
11561156 # which right coset representatives we've found for Gamma_0(N)/SL_2(Z)
11571157 # thru the construction of a fundamental domain
@@ -1171,8 +1171,8 @@ def form_list_of_cusps(self):
11711171 # This loop runs through the current set of cusps
11721172 # and checks to see if more cusps should be added
11731173 # -----------------------------------------------
1174- for s in range (1 , len (C ), 2 ): # range over odd indices in the
1175- # final list C
1174+ for s in range (1 , len (C ), 2 ):
1175+ # range over odd indices in the final list C
11761176 if C [s ] == "?" :
11771177
11781178 # Single out our two cusps (path from cusp2 to cusp1)
@@ -1188,9 +1188,9 @@ def form_list_of_cusps(self):
11881188 # This is the point where it is determined whether
11891189 # or not the adjacent triangle should be added
11901190 # ------------------------------------------------
1191- pos = P .index (b2 , b1 ) # The Sage index of the bottom
1192- # row of our unimodular
1193- # transformation gam
1191+ pos = P .index (b2 , b1 )
1192+ # The Sage index of the bottom row of our
1193+ # unimodular transformation gam
11941194
11951195 # Check if we need to flip (since this P1 element has not
11961196 # yet been accounted for!)
@@ -1214,16 +1214,18 @@ def form_list_of_cusps(self):
12141214 # where gam is the matrix corresponding to the
12151215 # unimodular path connecting cusp1 to cusp2
12161216
1217- C [s ] = "i" # The '?' is changed to an 'i'
1218- # indicating that a new cusp needs to
1219- # be inserted here
1217+ C [s ] = "i"
1218+ # The '?' is changed to an 'i' indicating
1219+ # that a new cusp needs to be inserted here
12201220 full_domain = False
12211221 else :
1222- C [s ] = "x" # The '?' is changed to an 'x' and no
1223- # more checking below is needed! =)
1222+ C [s ] = "x"
1223+ # The '?' is changed to an 'x' and no
1224+ # more checking below is needed! =)
12241225 else :
1225- C [s ] = "x" # The '?' is changed to an 'x' and no more
1226- # checking below is needed! =)
1226+ C [s ] = "x"
1227+ # The '?' is changed to an 'x' and no more
1228+ # checking below is needed! =)
12271229
12281230 # Now insert the missing cusps (where there is an 'i' in
12291231 # the final list)
0 commit comments