Skip to content
This repository was archived by the owner on Jan 30, 2023. It is now read-only.

Commit 8d3ad85

Browse files
author
Matthias Koeppe
committed
Merge #31764
2 parents e7f7a7d + 2d7fda7 commit 8d3ad85

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/sage/manifolds/subset.py

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# -*- coding: utf-8 -*-
12
r"""
23
Subsets of Topological Manifolds
34
@@ -2184,11 +2185,9 @@ def label(element):
21842185
if not others:
21852186
return res
21862187
for other in others[:-1]:
2187-
old, res = res, res._intersection_subset(other)
2188+
res = res._intersection_subset(other)
21882189
# The last one gets the name
2189-
other = others[-1]
2190-
old, res = res, res._intersection_subset(other, name=name, latex_name=latex_name)
2191-
return res
2190+
return res._intersection_subset(others[-1], name=name, latex_name=latex_name)
21922191

21932192
@staticmethod
21942193
def _reduce_intersection_members(subsets):
@@ -2416,11 +2415,9 @@ def label(element):
24162415
if not others:
24172416
return res
24182417
for other in others[:-1]:
2419-
old, res = res, res._union_subset(other)
2418+
res = res._union_subset(other)
24202419
# The last one gets the name
2421-
other = others[-1]
2422-
old, res = res, res._union_subset(other, name=name, latex_name=latex_name)
2423-
return res
2420+
return res._union_subset(others[-1], name=name, latex_name=latex_name)
24242421

24252422
@staticmethod
24262423
def _reduce_union_members(subsets):

0 commit comments

Comments
 (0)