Skip to content

Commit e0d4916

Browse files
committed
fixed whitespaces, prevent failing of other doctests
1 parent fc75d45 commit e0d4916

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/groups/perm_gps/permgroup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3306,15 +3306,15 @@ def commutator(self, other=None):
33063306
TypeError: junk is not a permutation group
33073307
33083308
TESTS:
3309-
3309+
33103310
Verify that :issue`39416` is fixed::
33113311
3312-
sage: G = PermutationGroup(gens=[("a", "b"), ("b","c")])
3312+
sage: G = PermutationGroup(gens=[(1,2), (2,4)], domain={1, 2, 4})
33133313
sage: G.commutator()
3314-
Subgroup generated by [('a','b','c')] of (Permutation Group with generators [('b','c'), ('a','b')])
3314+
Permutation Group with generators [(1,2,4)]
33153315
"""
33163316
if other is None:
3317-
return self.subgroup(gap_group=libgap.DerivedSubgroup(self))
3317+
return PermutationGroup(gap_group=libgap.DerivedSubgroup(self), domain=self.domain())
33183318
else:
33193319
from sage.categories.finite_permutation_groups import FinitePermutationGroups
33203320
if other not in FinitePermutationGroups():

0 commit comments

Comments
 (0)