@@ -2795,7 +2795,7 @@ def semidirect_product(self, N, mapping, check=True):
2795
2795
from sage .categories .finite_permutation_groups import FinitePermutationGroups
2796
2796
if N not in FinitePermutationGroups ():
2797
2797
raise TypeError ("{0} is not a permutation group" .format (N ))
2798
- if not PermutationGroup (gens = mapping [0 ]) == self :
2798
+ if not PermutationGroup (gens = mapping [0 ]) == self :
2799
2799
msg = 'the generator list must generate the calling group, {0} does not generate {1}'
2800
2800
raise ValueError (msg .format (mapping [0 ], self ._repr_ ()))
2801
2801
if len (mapping [0 ]) != len (mapping [1 ]):
@@ -3173,7 +3173,7 @@ def commutator(self, other=None):
3173
3173
return PermutationGroup (gap_group = gap_group )
3174
3174
3175
3175
@hap_decorator
3176
- def cohomology (self , n , p = 0 ):
3176
+ def cohomology (self , n , p = 0 ):
3177
3177
r"""
3178
3178
Computes the group cohomology `H^n(G, F)`, where `F = \ZZ`
3179
3179
if `p=0` and `F = \ZZ / p \ZZ` if `p > 0` is a prime.
@@ -3222,7 +3222,7 @@ def cohomology(self, n, p = 0):
3222
3222
return AbelianGroup (len (L ), L )
3223
3223
3224
3224
@hap_decorator
3225
- def cohomology_part (self , n , p = 0 ):
3225
+ def cohomology_part (self , n , p = 0 ):
3226
3226
r"""
3227
3227
Compute the p-part of the group cohomology `H^n(G, F)`,
3228
3228
where `F = \ZZ` if `p=0` and `F = \ZZ / p \ZZ` if
@@ -3258,7 +3258,7 @@ def cohomology_part(self, n, p = 0):
3258
3258
return AbelianGroup (len (L ), L )
3259
3259
3260
3260
@hap_decorator
3261
- def homology (self , n , p = 0 ):
3261
+ def homology (self , n , p = 0 ):
3262
3262
r"""
3263
3263
Computes the group homology `H_n(G, F)`, where
3264
3264
`F = \ZZ` if `p=0` and `F = \ZZ / p \ZZ` if
@@ -3306,7 +3306,7 @@ def homology(self, n, p = 0):
3306
3306
return AbelianGroup (len (L ), L )
3307
3307
3308
3308
@hap_decorator
3309
- def homology_part (self , n , p = 0 ):
3309
+ def homology_part (self , n , p = 0 ):
3310
3310
r"""
3311
3311
Computes the `p`-part of the group homology
3312
3312
`H_n(G, F)`, where `F = \ZZ` if `p=0` and
@@ -3630,7 +3630,7 @@ def _regular_subgroup_gap(self):
3630
3630
return C
3631
3631
3632
3632
@cached_method
3633
- def has_regular_subgroup (self , return_group = False ):
3633
+ def has_regular_subgroup (self , return_group = False ):
3634
3634
r"""
3635
3635
Return whether the group contains a regular subgroup.
3636
3636
@@ -3670,12 +3670,10 @@ def has_regular_subgroup(self, return_group = False):
3670
3670
b = (C is not None )
3671
3671
if b and return_group :
3672
3672
G = self .subgroup (gap_group = C .Representative ())
3673
- if return_group :
3674
- return G
3675
- else :
3676
- return b
3677
3673
3678
- def blocks_all (self , representatives = True ):
3674
+ return G if return_group else b
3675
+
3676
+ def blocks_all (self , representatives = True ):
3679
3677
r"""
3680
3678
Return the list of block systems of imprimitivity.
3681
3679
0 commit comments